]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: pxa168fb: make pxa168fb_init_mode() return void
authorJason Yan <yanaijie@huawei.com>
Wed, 6 May 2020 06:17:45 +0000 (14:17 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 9 May 2020 21:09:41 +0000 (23:09 +0200)
commit602f8cc1def5717c3c04f028d4bcdbf6d3146455
tree185a84a52a86b0bc3486faba7f3889340cd432f8
parentda189fa3cdd25efcfde46c5c1c6b48806a30a2dc
video: fbdev: pxa168fb: make pxa168fb_init_mode() return void

No other functions use the return value of pxa168fb_init_mode() and the
return value is always 0 now. Make it return void. This fixes the
following coccicheck warning:

drivers/video/fbdev/pxa168fb.c:565:5-8: Unneeded variable: "ret". Return
"0" on line 597

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
[fixed indent]
Link: https://patchwork.freedesktop.org/patch/msgid/20200506061745.19451-1-yanaijie@huawei.com
drivers/video/fbdev/pxa168fb.c