1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/nouveau/nvkm/subdev/instmem
Guo Zhengkui 2046e733e1 drm/nouveau/instmem: fix uninitialized_var.cocci warning
Fix following coccicheck warning:
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:316:11-12:
WARNING this kind of initialization is deprecated.

`void *map = map` has the same form of
uninitialized_var() macro. I remove the redundant assignement. It has
been tested with gcc (Debian 8.3.0-6) 8.3.0.

The patch which removed uninitialized_var() is:
https://lore.kernel.org/all/20121028102007.GA7547@gmail.com/
And there is very few "/* GCC */" comments in the Linux kernel code now.

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/20220228142352.18006-1-guozhengkui@vivo.com
2022-03-03 17:18:24 -05:00
..
base.c drm/nouveau/instmem: switch to instanced constructor 2021-02-11 11:49:53 +10:00
gk20a.c drm/nouveau/instmem: switch to instanced constructor 2021-02-11 11:49:53 +10:00
Kbuild drm/nouveau: fix bogus GPL-2 license header 2019-07-19 16:26:51 +10:00
nv04.c drm/nouveau/instmem: switch to instanced constructor 2021-02-11 11:49:53 +10:00
nv40.c drm/nouveau/instmem: switch to instanced constructor 2021-02-11 11:49:53 +10:00
nv50.c drm/nouveau/instmem: fix uninitialized_var.cocci warning 2022-03-03 17:18:24 -05:00
priv.h drm/nouveau/instmem: switch to instanced constructor 2021-02-11 11:49:53 +10:00