Content-Type: multipart/mixed; boundary="===============6150394581587246938==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] drm/vmwgfx: fix badzero.cocci warnings Date: Wed, 05 May 2021 18:10:28 +0800 Message-ID: <20210505101028.GA5891@7e032e5443f7> In-Reply-To: <20210505035740.286923-6-zackr@vmware.com> List-Id: --===============6150394581587246938== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c:674:25-26: 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 CC: Zack Rusin Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Zack-Rusin/drm-vmwgfx-SVGA= -v3-and-arm64-support/20210505-120026 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip vmwgfx_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c @@ -671,5 +671,5 @@ bool vmw_cmd_supported(struct vmw_privat /* * We have FIFO cmd's */ - return vmw->fifo_mem !=3D 0; + return vmw->fifo_mem !=3D NULL; } --===============6150394581587246938==--