]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ks7010: change static function return type
authorTobin C. Harding <me@tobin.cc>
Mon, 10 Apr 2017 03:15:44 +0000 (13:15 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Apr 2017 14:03:36 +0000 (16:03 +0200)
commit92da322e6476799b9b22300b8c22197197e7dabf
tree3c435ad5232103f31156999233c1e0848e68d961
parent1230423c465d712bae814e5c9b1c0f16ca7e7c06
staging: ks7010: change static function return type

Function has return type 'int'. Function has internal linkage. Function
returns 0 on all execution paths. Function is called only once in the
driver and the return value is not checked. Removal of this return
value does not change the program logic. The 'int' return type is not
adding any information thus it is better to remove it.

Change return type of function with internal linkage from 'int' to
'void'.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c