[U-Boot] mtd: cfi_flash: fix clang warning

Tom Rini trini at ti.com
Mon Jul 21 22:41:40 CEST 2014


On Tue, Jun 17, 2014 at 10:47:31PM +0200, Jeroen Hofstee wrote:

> clang warns this check is silly; it is since s is
> a local variable.
> 
> u-boot/drivers/mtd/cfi_flash.c:2363:13: warning: comparison of
>   array 's' not equal to a null pointer is always true
>   else if ((s != NULL) && (strcmp(s, "yes") == 0)) {
> 
> cc: Stefan Roese <sr at denx.de>
> Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140721/bf95cee5/attachment.pgp>


More information about the U-Boot mailing list