Staging: rtl8723bs: Change return type and type of local variable
authorMadhumitha Prabakaran <madhumithabiw@gmail.com>
Wed, 20 Mar 2019 23:02:02 +0000 (18:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Mar 2019 07:25:01 +0000 (08:25 +0100)
commite4432160d9b3ff5d23dc6af6fac3ed5cbd1a14f2
tree73ae66a9a1604ea2074fd9548c4a9169eabd96a1
parent19c74ea57715c09c63eb7ddeadab84503f9fed9f
Staging: rtl8723bs: Change return type and type of local variable

rtw_startbss_cmd can return the result of calling rtw_enqueue_cmd, which
can return the result of calling _rtw_enqueue_cmd, but they all have
different return types (u8, u32, and sint, respectively).

As all of these functions return error codes, change all the return types
to int, in preparation for converting these functions to use standard
kernel error codes.

Also, remove extern from the function declaration to maintain Linux kernel
coding style.

Issue suggested by Coccinelle.

Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_cmd.c
drivers/staging/rtl8723bs/include/cmd_osdep.h
drivers/staging/rtl8723bs/include/rtw_cmd.h