From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 26 Nov 2015 18:51:58 -0800 Subject: [U-Boot] [PATCH] common: mmc: unsigned char compared against 0 In-Reply-To: <1448442981-14127-2-git-send-email-Peng.Fan@freescale.com> References: <1448442981-14127-1-git-send-email-Peng.Fan@freescale.com> <1448442981-14127-2-git-send-email-Peng.Fan@freescale.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. Regards, Simon