]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: bcb: change strcmp() usage style in the do_bcb_ab_select()
authorDmitry Rokosov <ddrokosov@salutedevices.com>
Thu, 17 Oct 2024 14:12:09 +0000 (17:12 +0300)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Thu, 24 Oct 2024 07:45:55 +0000 (09:45 +0200)
commitb1bc9a2fc93da8ed25dfc4078e76220ac26eb6b0
tree688a1fce90ddea8ae4e627d54d9243a179ddb71e
parentb523b4d2c32f07ca0793bb0f926b02ecb0556cc6
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 <mkorpershoek@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Guillaume La Roque <glaroque@baylibre.com>
Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # vim3_android
Link: https://lore.kernel.org/r/20241017-android_ab_master-v5-4-43bfcc096d95@salutedevices.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
cmd/bcb.c