From: Dmitry Rokosov Date: Thu, 17 Oct 2024 14:12:09 +0000 (+0300) Subject: cmd: bcb: change strcmp() usage style in the do_bcb_ab_select() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=b1bc9a2fc93da8ed25dfc4078e76220ac26eb6b0;p=u-boot.git cmd: bcb: change strcmp() usage style in the do_bcb_ab_select() In the entire cmd/bcb.c file, the return value of strcmp() is not directly compared to 0. Therefore, it would be better to maintain this style in the new do_bcb_ab_select() function as well. Reviewed-by: Mattijs Korpershoek Reviewed-by: Simon Glass Tested-by: Guillaume La Roque Signed-off-by: Dmitry Rokosov Tested-by: Mattijs Korpershoek # vim3_android Link: https://lore.kernel.org/r/20241017-android_ab_master-v5-4-43bfcc096d95@salutedevices.com Signed-off-by: Mattijs Korpershoek --- diff --git a/cmd/bcb.c b/cmd/bcb.c index 2854408e56..b33c046af0 100644 --- a/cmd/bcb.c +++ b/cmd/bcb.c @@ -391,7 +391,7 @@ __maybe_unused static int do_bcb_ab_select(struct cmd_tbl *cmdtp, return CMD_RET_USAGE; for (int i = 4; i < argc; i++) { - if (strcmp(argv[i], "--no-dec") == 0) + if (!strcmp(argv[i], "--no-dec")) dec_tries = false; else return CMD_RET_USAGE;