]> git.baikalelectronics.ru Git - kernel.git/commit
USB: misc: sisusb_con: fix coccinelle warning
authorJiri Slaby <jslaby@suse.cz>
Wed, 15 Mar 2017 11:00:09 +0000 (12:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 04:27:41 +0000 (13:27 +0900)
commit98c0f879897c0c37d9b736a5b47dc6a4157aa41b
tree86dce229072c37176c3f913cb3ebc42c5418d135
parent0b10adf2881cb7a92f9f9855485f3bd22e0e30b0
USB: misc: 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
Cc: cocci@systeme.lip6.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/sisusbvga/sisusb_con.c