From: Anan Jaser Date: Tue, 22 Sep 2020 23:01:25 +0000 (+0400) Subject: staging: abc: fix comparing a pointer to a null character X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=44e27161f7a0128e03b87a8a7a13156955b74a7e;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git staging: abc: fix comparing a pointer to a null character Change-Id: Ic062052928e84f6b065472a5dee4bf8a49fc964e --- diff --git a/drivers/staging/sti/abc/abc_common.c b/drivers/staging/sti/abc/abc_common.c index d93f5524fd7e..0af8c085f415 100644 --- a/drivers/staging/sti/abc/abc_common.c +++ b/drivers/staging/sti/abc/abc_common.c @@ -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++; }