summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLad, Prabhakar <prabhakar.csengg@gmail.com>2015-02-05 14:40:05 +0000
committerDarren Hart <dvhart@linux.intel.com>2015-02-06 18:44:28 -0800
commit4e7f09ad5ea98ae60a435575ae877bd68a5f2d5c (patch)
tree6024571b0a4a7c957202d3f813549b5bf3b93884
parentb0dcaf4fbb36895175657be029ed64eda2a34707 (diff)
downloadlinux-4e7f09ad5ea98ae60a435575ae877bd68a5f2d5c.tar.gz
linux-4e7f09ad5ea98ae60a435575ae877bd68a5f2d5c.tar.bz2
linux-4e7f09ad5ea98ae60a435575ae877bd68a5f2d5c.zip
samsung-laptop: Fix sparse integer as NULL warning
Fix the following sparse warning: samsung-laptop.c:1365:52: warning: Using plain integer as NULL pointer Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rw-r--r--drivers/platform/x86/samsung-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c
index 174333660288..3257b0228613 100644
--- a/drivers/platform/x86/samsung-laptop.c
+++ b/drivers/platform/x86/samsung-laptop.c
@@ -1461,7 +1461,7 @@ static int __init samsung_sabi_init(struct samsung_laptop *samsung)
samsung_sabi_diag(samsung);
/* Try to find one of the signatures in memory to find the header */
- for (i = 0; sabi_configs[i].test_string != 0; ++i) {
+ for (i = 0; sabi_configs[i].test_string != NULL; ++i) {
samsung->config = &sabi_configs[i];
loca = find_signature(samsung->f0000_segment,
samsung->config->test_string);