diff options
author | Dmitry Torokhov <dtor@vmware.com> | 2011-02-23 17:38:20 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-25 14:40:01 -0500 |
commit | c9642374d0e969e8c17f4f31cd1a2bd111634227 (patch) | |
tree | 50df5c053d7eb31139c18fd90ab146958c06e84d /include/linux/usb | |
parent | 969e3033ae7733a0af8f7742ca74cd16c0857e71 (diff) |
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: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/ch9.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index ab461948b579..34316ba05f29 100644 --- a/include/linux/usb/ch9.h +++ b/include/linux/usb/ch9.h | |||
@@ -584,7 +584,7 @@ struct usb_ss_ep_comp_descriptor { | |||
584 | 584 | ||
585 | #define USB_DT_SS_EP_COMP_SIZE 6 | 585 | #define USB_DT_SS_EP_COMP_SIZE 6 |
586 | /* Bits 4:0 of bmAttributes if this is a bulk endpoint */ | 586 | /* Bits 4:0 of bmAttributes if this is a bulk endpoint */ |
587 | #define USB_SS_MAX_STREAMS(p) (1 << (p & 0x1f)) | 587 | #define USB_SS_MAX_STREAMS(p) (1 << ((p) & 0x1f)) |
588 | 588 | ||
589 | /*-------------------------------------------------------------------------*/ | 589 | /*-------------------------------------------------------------------------*/ |
590 | 590 | ||