]> git.baikalelectronics.ru Git - kernel.git/commit
sisusb_con: fix coccinelle warning
authorJiri Slaby <jslaby@suse.cz>
Fri, 12 May 2017 08:06:29 +0000 (10:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2017 09:27:41 +0000 (11:27 +0200)
commitf73848ab4431c4045dba76fa76ca4c9b4e3cd2c4
tree4058b626a9acc0c4748d1382e1dee14acaf25eed
parente464f21897e52a5233602e61f7bfb26c9999ce25
sisusb_con: fix coccinelle warning

After commit 58e38eb8da (tty: vt, cleanup and document con_scroll), in
the coccinelle output, we can see:
drivers/usb/misc/sisusbvga/sisusb_con.c:852:8-9: WARNING: return of 0/1 in function 'sisusbcon_scroll_area' with return type bool

Return true instead of 1 in the function returning bool which was
intended to do in 58e38eb8da but omitted.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Fixes: 58e38eb8da (tty: vt, cleanup and document con_scroll)
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/sisusbvga/sisusb_con.c