Commit b49f6911 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: r8188eu: convert rtw_inc_and_chk_continual_urb_error() to bool

Function rtw_inc_and_chk_continual_urb_error() returns boolean values.
Change its return type from int to bool.
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220329103756.6740-5-straube.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b2bfb60c
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @return true: * @return true:
* @return false: * @return false:
*/ */
static inline int rtw_inc_and_chk_continual_urb_error(struct dvobj_priv *dvobj) static inline bool rtw_inc_and_chk_continual_urb_error(struct dvobj_priv *dvobj)
{ {
int value = atomic_inc_return(&dvobj->continual_urb_error); int value = atomic_inc_return(&dvobj->continual_urb_error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment