Skip to content
Snippets Groups Projects
Commit c15df21f authored by Jeroen Hofstee's avatar Jeroen Hofstee Committed by Tom Rini
Browse files

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: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
parent 524123a7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment