staging: abc: fix comparing a pointer to a null character
authorAnan Jaser <ananjaser@gmail.com>
Tue, 22 Sep 2020 23:01:25 +0000 (03:01 +0400)
committerAnan Jaser <ananjaser@gmail.com>
Tue, 22 Sep 2020 23:01:25 +0000 (03:01 +0400)
Change-Id: Ic062052928e84f6b065472a5dee4bf8a49fc964e

drivers/staging/sti/abc/abc_common.c

index d93f5524fd7e5207699d0a262648b1187a1e713a..0af8c085f415392e843d5fc3741b6ec89d15e06d 100644 (file)
@@ -360,7 +360,7 @@ static void sec_abc_work_func(struct work_struct *work)
 
 #if defined(DEBUG_ABC)
        idx = 0;
-       while ((c = uevent_str[idx]) != '\0') {
+       while ((c = uevent_str[idx]) != NULL) {
                ABC_PRINT("%s\n", uevent_str[idx]);
                idx++;
        }