]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2233e2a0444a9eacf6468bb708c550c75008d69e
tree842238cbc6de4229c168c0299d9cd87656599adb
parentdab66bd26a35e161931c3dac9f3bf700858800d6
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