staging: wilc1000: return error code directly in host_int_set_mac_chnl_num
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 5 Oct 2015 02:07:22 +0000 (11:07 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2015 09:52:45 +0000 (10:52 +0100)
commit792fb25b1be8a61f623438abe40efcdbcb9597a3
tree898689b63a988ea6f554d77118b14b12beab7330
parent157da215b5312017889dc856e770c422db336aac
staging: wilc1000: return error code directly in host_int_set_mac_chnl_num

There is no need to pass the error code to the variable 'result'.
Just return the error directly when error occurs.
Return 0 at the end of this function when error is not happened.

Suggested-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c