From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8526792886545522791==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] mt6625l: fix badzero.cocci warnings Date: Sun, 12 Jul 2020 20:19:06 +0800 Message-ID: <20200712121906.GA72175@f669aaa75a90> In-Reply-To: <202007122043.encHIg4V%lkp@intel.com> List-Id: --===============8526792886545522791== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:1587:54= -55: WARNING comparing pointer to 0 Compare pointer-typed values to NULL rather than 0 Semantic patch information: This makes an effort to choose between !x and x =3D=3D NULL. !x is used if it has previously been used with the function used to initialize x. This relies on type information. More type information can be obtained using the option -all_includes and the option -I to specify an include path. Generated by: scripts/coccinelle/null/badzero.cocci Fixes: 9a72d145abe4 ("mt6625l: include wifi-folder") Signed-off-by: kernel test robot --- tree: https://github.com/frank-w/BPI-R2-4.14 5.8-rc head: ca0d6f7786586ca7ba424d5967d780dd3c75748b commit: 9a72d145abe49d9cb1e16d479b0b18caa20cdd71 [5/38] mt6625l: include wi= fi-folder gl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c +++ b/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c @@ -1584,7 +1584,7 @@ mtk_cfg80211_mgmt_tx(struct wiphy *wiphy DBGLOG(REQ, TRACE, "--> %s()\n", __func__); #endif = - if ((wiphy =3D=3D NULL) || (wdev =3D=3D NULL) || (params =3D=3D 0) || (c= ookie =3D=3D NULL)) + if ((wiphy =3D=3D NULL) || (wdev =3D=3D NULL) || (params =3D=3D NULL) ||= (cookie =3D=3D NULL)) break; = prGlueInfo =3D (P_GLUE_INFO_T) wiphy_priv(wiphy); --===============8526792886545522791==--