staging: wilc1000: remove parentheses on right hand side of assignment
PATCH 1/1 staging: wilc1000: remove parentheses on right hand side of assignment
Remove the unnecessary parens on right hand side of assignment.
Found using Coccinelle:
@@
identifier x;
expression e1, e2;
@@
- x = (e1 << e2)
+ x = e1 << e2
Signed-off-by Alison Schofield <[email protected]>
--- drivers/staging/wilc1000/wilc_wlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wilc1000/wilc_wlan.c +2 -2
@@ -921,11 +921,11 @@ static void wilc_wlan_handle_isr_ext(struct wilc *wilc, u32 int_status)int ret =0 ;struct rxq_entry_t *rqe; - size = ((int_status &0x7fff ) <<2 ); + size = (int_status &0x7fff ) <<2 ;while (!size && retries <10 ) { wilc->hif_func->hif_read_size (wilc, &size); - size = ((size &0x7fff ) <<2 ); + size = (size &0x7fff ) <<2 ; retries++; }
Signature · 1 line
2.1.4
Quoted 11 lines · Alison Schofield
Remove the unnecessary parens on right hand side of assignment.
Found using Coccinelle:
@@
identifier x;
expression e1, e2;
@@
- x = (e1 << e2)
+ x = e1 << e2Signed-off-by Alison Schofield <[email protected]>
Acked-by Julia Lawall <[email protected]>
Quoted 32 lines
--- drivers/staging/wilc1000/wilc_wlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/wilc1000/wilc_wlan.c +2
-2@@ -921,11 +921,11 @@ static void wilc_wlan_handle_isr_ext(struct wilc *wilc, u32 int_status)int ret =0 ;struct rxq_entry_t *rqe; - size = ((int_status &0x7fff ) <<2 ); + size = (int_status &0x7fff ) <<2 ;while (!size && retries <10 ) { wilc->hif_func->hif_read_size (wilc, &size); - size = ((size &0x7fff ) <<2 ); + size = (size &0x7fff ) <<2 ; retries++; }Signature · 8 lines
2.1.4 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160211053430.GA8222%40d830.WORKGROUP. For more options, visit https://groups.google.com/d/optout.