[U-Boot] [PATCH] common: mmc: unsigned char compared against 0
Peng Fan
b51431 at freescale.com
Fri Nov 27 05:58:33 CET 2015
Hi Simon,
On Thu, Nov 26, 2015 at 06:51:58PM -0800, Simon Glass wrote:
>Hi Peng,
>
>On 25 November 2015 at 01:16, Peng Fan <Peng.Fan at freescale.com> wrote:
>> "enable" is unsigned char type and its value will not be
>> negative, so discard "enable < 0".
>>
>> Signed-off-by: Peng Fan <Peng.Fan at freescale.com>
>> Cc: Diego Santa Cruz <Diego.SantaCruz at spinetix.com>
>> Cc: Pantelis Antoniou <pantelis.antoniou at konsulko.com>
>> Cc: Andrew Gabbasov <andrew_gabbasov at mentor.com>
>> Cc: Simon Glass <sjg at chromium.org>
>> Cc: Stefano Babic <sbabic at denx.de>
>> Cc: Tom Rini <trini at konsulko.com>
>> ---
>> common/cmd_mmc.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>Reviewed-by: Simon Glass <sjg at chromium.org>
>
>Even better if this variable changed to uint, instead of u8.
Thanks for reviewing, But I prefer to let it be, since mmc_set_rst_n_function
takes u8 type for input parameter.
Thanks,
Peng.
>
>Regards,
>Simon
--
More information about the U-Boot
mailing list