wireless: bcmdhd4361: fix fix comparing a pointer to a null character
authorAnan Jaser <ananjaser@gmail.com>
Tue, 22 Sep 2020 20:16:54 +0000 (00:16 +0400)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:14:06 +0000 (21:14 +0000)
drivers/net/wireless/bcmdhd4361/dhd_common.c:3839:19: error: comparing a pointer to a null character constant; did you mean to compare to N
ULL? [-Werror,-Wpointer-compare]
                        if (argv[i] == '\0') {
                                       ^~~~
                                       (void *)0

Change-Id: I4b6613761ff3965cb8741046d4d62d2ea04a852e

drivers/net/wireless/bcmdhd4361/dhd_common.c

index c8cedd87c228572668c5acfdf502bc9616f2a268..377c9cc98337135a1908eda95d86226fb3db3115 100644 (file)
@@ -3836,7 +3836,7 @@ dhd_pktfilter_offload_set(dhd_pub_t * dhd, char *arg)
                                        htod16(WL_PKT_FILTER_MFLAG_NEG);
                                (argv[i])++;
                        }
-                       if (argv[i] == '\0') {
+                       if (argv[i] == NULL) {
                                printf("Pattern not provided\n");
                                goto fail;
                        }