Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9642374 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Greg Kroah-Hartman
Browse files

USB: fix unsafe USB_SS_MAX_STREAMS() definition



Macro arguments used in expressions need to be enclosed in parenthesis
to avoid unpleasant surprises.

Signed-off-by: default avatarDmitry Torokhov <dtor@vmware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 969e3033
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -584,7 +584,7 @@ struct usb_ss_ep_comp_descriptor {

#define USB_DT_SS_EP_COMP_SIZE		6
/* Bits 4:0 of bmAttributes if this is a bulk endpoint */
#define USB_SS_MAX_STREAMS(p)		(1 << (p & 0x1f))
#define USB_SS_MAX_STREAMS(p)		(1 << ((p) & 0x1f))

/*-------------------------------------------------------------------------*/