drm/nouveau/devinit/nva3-: fix returnvar.cocci warning
authorGuo Zhengkui <guozhengkui@vivo.com>
Mon, 25 Apr 2022 11:47:00 +0000 (19:47 +0800)
committerLyude Paul <lyude@redhat.com>
Tue, 26 Apr 2022 18:18:58 +0000 (14:18 -0400)
commitfebd8fdeac5ac1f722e96a51e43c0357624f369c
tree842238cbc6de4229c168c0299d9cd87656599adb
parent7f7166d0a84d20a4a36539658d6d8a591e8cb223
drm/nouveau/devinit/nva3-: fix returnvar.cocci warning

Fix the following coccicheck warning:
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gt215.c:71:5-12:
Unneeded variable: "disable". Return "0ULL" on line 85.

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220425114701.7182-1-guozhengkui@vivo.com
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gt215.c