]> git.baikalelectronics.ru Git - kernel.git/commit
tty: mxser: make mxser_change_speed() return void
authorJason Yan <yanaijie@huawei.com>
Wed, 6 May 2020 06:17:35 +0000 (14:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 12:47:05 +0000 (14:47 +0200)
commitec023c38800d95efef1d688d12fd8288d5156aeb
treef171670fb7eaeac428b4671553379e7755275b59
parent9f0b73bc998c3d7b52d30c00f14dffd468f388d6
tty: mxser: make mxser_change_speed() return void

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

drivers/tty/mxser.c:645:5-8: Unneeded variable: "ret". Return "0" on
line 650

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20200506061735.19369-1-yanaijie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c