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/?p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git;a=commitdiff_plain;h=fcca0da3d807c343676a21eb83b8c6aac51ab9e9 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; }