fixed all the errors found by checkpatch.pl

Signed-off-by: Gokulnath A <gokulnath.avanashilin...@in.bosch.com>
---
 drivers/staging/bcm/InterfaceInit.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/staging/bcm/InterfaceInit.c 
b/drivers/staging/bcm/InterfaceInit.c
index 3acdb58..eaecb5b 100644
--- a/drivers/staging/bcm/InterfaceInit.c
+++ b/drivers/staging/bcm/InterfaceInit.c
@@ -360,36 +360,36 @@ static inline int bcm_usb_endpoint_type(const struct 
usb_endpoint_descriptor *ep
 
 static inline int bcm_usb_endpoint_dir_in(const struct usb_endpoint_descriptor 
*epd)
 {
-       return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN);
+       return (epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN;
 }
 
 static inline int bcm_usb_endpoint_dir_out(const struct 
usb_endpoint_descriptor *epd)
 {
-       return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT);
+       return (epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT;
 }
 
 static inline int bcm_usb_endpoint_xfer_bulk(const struct 
usb_endpoint_descriptor *epd)
 {
-       return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) ==
-               USB_ENDPOINT_XFER_BULK);
+       return (epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) ==
+               USB_ENDPOINT_XFER_BULK;
 }
 
 static inline int bcm_usb_endpoint_xfer_control(const struct 
usb_endpoint_descriptor *epd)
 {
-       return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) ==
-               USB_ENDPOINT_XFER_CONTROL);
+       return (epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) ==
+               USB_ENDPOINT_XFER_CONTROL;
 }
 
 static inline int bcm_usb_endpoint_xfer_int(const struct 
usb_endpoint_descriptor *epd)
 {
-       return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) ==
-               USB_ENDPOINT_XFER_INT);
+       return (epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) ==
+               USB_ENDPOINT_XFER_INT;
 }
 
 static inline int bcm_usb_endpoint_xfer_isoc(const struct 
usb_endpoint_descriptor *epd)
 {
-       return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) ==
-               USB_ENDPOINT_XFER_ISOC);
+       return (epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) ==
+               USB_ENDPOINT_XFER_ISOC;
 }
 
 static inline int bcm_usb_endpoint_is_bulk_in(const struct 
usb_endpoint_descriptor *epd)
-- 
1.8.1.2

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to