1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-08-31 16:22:36 +02:00
Files
u-boot-megous/common
Peng Fan aa72252963 common: cli_hush: avoid dead code
Condition "(value == NULL && ++value == NULL)" actully will
always return false.

Instead, use condition "(value == NULL || *(value + 1) == 0)" to detect
such expression "c=". To "c=", *(value + 1) is 0, so directly return -1,
but not continue.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Cc: Rabin Vincent <rabin@rab.in>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2015-12-05 18:22:14 -05:00
..
2015-12-05 18:22:14 -05:00
2015-06-10 19:26:54 -06:00
2015-07-20 07:21:47 -06:00
2015-01-30 09:19:17 -05:00
2015-01-30 09:19:16 -05:00
2014-10-26 14:03:08 -04:00
2014-12-29 16:31:24 -05:00
2015-05-14 19:58:34 -06:00
2015-07-27 15:53:48 -07:00
2015-11-05 16:47:06 -05:00
2015-10-26 09:22:36 +01:00
2015-05-21 09:13:19 -04:00
2015-11-12 13:18:59 -05:00
2015-01-05 12:08:51 -05:00
2015-10-19 17:06:16 -04:00
2015-11-19 20:27:50 -07:00
2015-11-12 13:18:59 -05:00