projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f7166d
)
drm/nouveau/devinit/nva3-: fix returnvar.cocci warning
author
Guo Zhengkui
<guozhengkui@vivo.com>
Mon, 25 Apr 2022 11:47:00 +0000
(19:47 +0800)
committer
Lyude Paul
<lyude@redhat.com>
Tue, 26 Apr 2022 18:18:58 +0000
(14:18 -0400)
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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gt215.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gt215.c
index dc026ac1b5950cdf6ff40895974890f3468ffc04..3d0ab86c31158830336583d1caedde868345379a 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gt215.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gt215.c
@@
-68,7
+68,6
@@
gt215_devinit_disable(struct nvkm_devinit *init)
struct nvkm_device *device = init->subdev.device;
u32 r001540 = nvkm_rd32(device, 0x001540);
u32 r00154c = nvkm_rd32(device, 0x00154c);
- u64 disable = 0ULL;
if (!(r001540 & 0x40000000)) {
nvkm_subdev_disable(device, NVKM_ENGINE_MSPDEC, 0);
@@
-82,7
+81,7
@@
gt215_devinit_disable(struct nvkm_devinit *init)
if (!(r00154c & 0x00000200))
nvkm_subdev_disable(device, NVKM_ENGINE_CE, 0);
- return
disable
;
+ return
0ULL
;
}
static u32