提交 61cc4816 编写于 作者: C Colin Ian King 提交者: Daniel Vetter

video: fbdev: s3c-fb: remove redundant initialization of pointer bufs

Pointer bufs is being initialized with a value that is never read, it
is being re-assigned with a different value later on. The assignment
is redundant and can be removed. Cleans up clang-scan warning:

drivers/video/fbdev/s3c-fb.c:492:16: warning: Value stored to 'buf'
during its initialization is never read [deadcode.DeadStores]
        void __iomem *buf = regs;
Signed-off-by: NColin Ian King <colin.i.king@gmail.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20211230160626.404072-1-colin.i.king@gmail.com
上级 fdb9fb6c
...@@ -489,7 +489,7 @@ static int s3c_fb_set_par(struct fb_info *info) ...@@ -489,7 +489,7 @@ static int s3c_fb_set_par(struct fb_info *info)
struct s3c_fb_win *win = info->par; struct s3c_fb_win *win = info->par;
struct s3c_fb *sfb = win->parent; struct s3c_fb *sfb = win->parent;
void __iomem *regs = sfb->regs; void __iomem *regs = sfb->regs;
void __iomem *buf = regs; void __iomem *buf;
int win_no = win->index; int win_no = win->index;
u32 alpha = 0; u32 alpha = 0;
u32 data; u32 data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册