From: Anan Jaser Date: Tue, 22 Sep 2020 20:16:54 +0000 (+0400) Subject: wireless: bcmdhd4361: fix fix comparing a pointer to a null character X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f41c13321599bddbbcc77342bf4135deeca9c40;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git wireless: bcmdhd4361: fix fix comparing a pointer to a null character 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 --- diff --git a/drivers/net/wireless/bcmdhd4361/dhd_common.c b/drivers/net/wireless/bcmdhd4361/dhd_common.c index c8cedd87c228..377c9cc98337 100644 --- a/drivers/net/wireless/bcmdhd4361/dhd_common.c +++ b/drivers/net/wireless/bcmdhd4361/dhd_common.c @@ -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; }