]> code.ossystems Code Review - bsp/u-boot.git/commit
mtd: cfi_flash: fix clang warning
authorJeroen Hofstee <jeroen@myspectrum.nl>
Tue, 17 Jun 2014 20:47:31 +0000 (22:47 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Sun, 10 Aug 2014 23:49:03 +0000 (20:49 -0300)
commitcf321e16f6b6b2561dd6af226bca3d9efb5f4ca4
treed0448f421dbec1d8b4303933c3f7db890564b0ad
parent64d14a762c16ecaf715605ca4b2ced6b9413f9d0
mtd: cfi_flash: fix clang warning

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@denx.de>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
drivers/mtd/cfi_flash.c