video: fbdev: s3c-fb: remove redundant initialization of pointer bufs
authorColin Ian King <colin.i.king@gmail.com>
Thu, 30 Dec 2021 16:06:26 +0000 (16:06 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Jan 2022 16:58:43 +0000 (17:58 +0100)
commit61cc48163a4f061dcb0ef84cde228b5f75ae8594
treef75cf09c0c66a3102c23f26be1536ca5dd4ce563
parentfdb9fb6c1302c112dd2ef5056edda2cef6d73bd4
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: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20211230160626.404072-1-colin.i.king@gmail.com
drivers/video/fbdev/s3c-fb.c