Commit b2bfb60c authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: convert rtw_usb_bulk_size_boundary() to bool



Function rtw_usb_bulk_size_boundary() returns boolean values.
Change its return type from u8 to bool.

Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220329103756.6740-4-straube.linux@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0166ffdc
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -46,7 +46,7 @@ static inline void rtw_reset_continual_urb_error(struct dvobj_priv *dvobj)
#define USB_HIGH_SPEED_BULK_SIZE	512
#define USB_HIGH_SPEED_BULK_SIZE	512
#define USB_FULL_SPEED_BULK_SIZE	64
#define USB_FULL_SPEED_BULK_SIZE	64


static inline u8 rtw_usb_bulk_size_boundary(struct adapter *padapter, int buf_len)
static inline bool rtw_usb_bulk_size_boundary(struct adapter *padapter, int buf_len)
{
{
	struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
	struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);