From 322d51e5e474e15aa199fcd78d3aa447e16df36b Mon Sep 17 00:00:00 2001 From: Jens Remus Date: Tue, 5 Sep 2017 22:41:09 +0200 Subject: [PATCH] zipl: remove redundant duplicate expression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves Cppcheck style warning: [zipl/boot/stage3.c:260]: (style) Same expression on both sides of '&&'. Cc: Stefan Haberland Cc: Peter Oberparleiter Signed-off-by: Jens Remus Reviewed-by: Jan Höppner Signed-off-by: Jan Höppner --- zipl/boot/stage3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zipl/boot/stage3.c b/zipl/boot/stage3.c index eb026279..109acd17 100644 --- a/zipl/boot/stage3.c +++ b/zipl/boot/stage3.c @@ -3,7 +3,7 @@ * * Main program for stage3 bootloader * - * Copyright IBM Corp. 2013, 2017 + * Copyright IBM Corp. 2013, 2018 * * s390-tools is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. @@ -257,7 +257,7 @@ void start(void) length++; /* find end of original parm line */ - while (command_line[end] != 0 && command_line[end] != 0) + while (command_line[end] != 0) end++; /*