diff options
author | Michael Straube <straube.linux@gmail.com> | 2022-03-29 12:37:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-04 07:33:47 +0200 |
commit | b49f6911899b60086b818c452c842e5fb92095d3 (patch) | |
tree | d59769f1338b5eed3f766373ba986e7539c70d9b /drivers/staging/r8188eu/include/usb_ops.h | |
parent | staging: r8188eu: convert rtw_usb_bulk_size_boundary() to bool (diff) | |
download | linux-dev-b49f6911899b60086b818c452c842e5fb92095d3.tar.xz linux-dev-b49f6911899b60086b818c452c842e5fb92095d3.zip |
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: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220329103756.6740-5-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/usb_ops.h')
-rw-r--r-- | drivers/staging/r8188eu/include/usb_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/include/usb_ops.h b/drivers/staging/r8188eu/include/usb_ops.h index 5ee1c8c7940d..ddc46cb44358 100644 --- a/drivers/staging/r8188eu/include/usb_ops.h +++ b/drivers/staging/r8188eu/include/usb_ops.h @@ -25,7 +25,7 @@ * @return true: * @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); |