From 44e27161f7a0128e03b87a8a7a13156955b74a7e Mon Sep 17 00:00:00 2001 From: Anan Jaser Date: Wed, 23 Sep 2020 03:01:25 +0400 Subject: [PATCH] staging: abc: fix comparing a pointer to a null character Change-Id: Ic062052928e84f6b065472a5dee4bf8a49fc964e --- drivers/staging/sti/abc/abc_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- 2.20.1