From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Fri, 27 Nov 2015 12:58:33 +0800 Subject: [U-Boot] [PATCH] common: mmc: unsigned char compared against 0 In-Reply-To: References: <1448442981-14127-1-git-send-email-Peng.Fan@freescale.com> <1448442981-14127-2-git-send-email-Peng.Fan@freescale.com> Message-ID: <20151127045832.GB22834@shlinux2> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 wrote: >> "enable" is unsigned char type and its value will not be >> negative, so discard "enable < 0". >> >> Signed-off-by: Peng Fan >> Cc: Diego Santa Cruz >> Cc: Pantelis Antoniou >> Cc: Andrew Gabbasov >> Cc: Simon Glass >> Cc: Stefano Babic >> Cc: Tom Rini >> --- >> common/cmd_mmc.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > >Reviewed-by: Simon Glass > >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 --