Skip to content
Commit 6dae0969 authored by Guo Zhengkui's avatar Guo Zhengkui Committed by Greg Kroah-Hartman
Browse files

drm/nouveau/instmem: fix uninitialized_var.cocci warning

[ Upstream commit 2046e733 ]

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: default avatarGuo Zhengkui <guozhengkui@vivo.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220228142352.18006-1-guozhengkui@vivo.com


Stable-dep-of: 3b1ae9b7 ("octeontx2-af: Consider the action set by PF")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 4d3b2bd9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment