diff options
| author | Dmitry Rokosov <[email protected]> | 2024-10-17 17:12:09 +0300 |
|---|---|---|
| committer | Mattijs Korpershoek <[email protected]> | 2024-10-24 09:45:55 +0200 |
| commit | b1bc9a2fc93da8ed25dfc4078e76220ac26eb6b0 (patch) | |
| tree | 688a1fce90ddea8ae4e627d54d9243a179ddb71e /cmd | |
| parent | b523b4d2c32f07ca0793bb0f926b02ecb0556cc6 (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Tested-by: Guillaume La Roque <[email protected]>
Signed-off-by: Dmitry Rokosov <[email protected]>
Tested-by: Mattijs Korpershoek <[email protected]> # vim3_android
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/bcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bcb.c b/cmd/bcb.c index 2854408e566..b33c046af03 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; |
