]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: valkyriefb.c: fix warning comparing pointer to 0
authorJason Yan <yanaijie@huawei.com>
Wed, 29 Apr 2020 14:09:42 +0000 (22:09 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 6 May 2020 19:04:45 +0000 (21:04 +0200)
commitf09a59021d02e0c586fd2a8803dea534463ad3e2
tree839d20f897f05dbc3cd2e766cd113c0f1b494bf9
parente29b0ad5c7b226f25a23a28c8c2bbd1a0b5e8d1d
video: fbdev: valkyriefb.c: fix warning comparing pointer to 0

Fix the following coccicheck warning:

drivers/video/fbdev/valkyriefb.c:348:10-11: WARNING comparing pointer to
0, suggest !E
drivers/video/fbdev/valkyriefb.c:334:12-13: WARNING comparing pointer to
0
drivers/video/fbdev/valkyriefb.c:348:10-11: WARNING comparing pointer to
0

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200429140942.8137-1-yanaijie@huawei.com
drivers/video/fbdev/valkyriefb.c