Skip to content
Snippets Groups Projects
Commit 523f524d authored by Vaibhav Gupta's avatar Vaibhav Gupta
Browse files

drivers: eeprom: Don't use ternary operator


Signed-off-by: default avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent 43d99d5f
Branches
Tags
No related merge requests found
...@@ -100,7 +100,7 @@ int fmc_nvmem_device_find_match(struct device *dev, const void *data) ...@@ -100,7 +100,7 @@ int fmc_nvmem_device_find_match(struct device *dev, const void *data)
const char *s1 = dev_name(dev); const char *s1 = dev_name(dev);
const char *s2 = (const char*) data; const char *s2 = (const char*) data;
return memcmp(s1, s2, strlen(s2)) ? false: true; return !memcmp(s1, s2, strlen(s2));
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment