Staging: octeon-usb: Remove unnecessary braces
PATCH v2 1/1 Staging: octeon-usb: Remove unnecessary braces
This patch removes unnecessary braces. Issue found by checkpatch.pl
Signed-off-by Ksenija Stanojevic <[email protected]>
---
v2: remove braces instead of space.
drivers/staging/octeon-usb/octeon-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/octeon-usb/octeon-hcd.c +1 -1
@@ -412,7 +412,7 @@ struct octeon_hcd {type c; \while (1 ) { \ c.u32 =__cvmx_usb_read_csr32 (usb, address); \ - if (c.s.field op (value)) { \ + if (c.s.field op value) { \ result =0 ; \break ; \ }else if (cvmx_get_cycle () > done) { \
Signature · 1 line
1.9.1
Quoted 14 lines · Ksenija Stanojevic
This patch removes unnecessary braces. Issue found by checkpatch.pl
Signed-off-by Ksenija Stanojevic <[email protected]>---
v2: remove braces instead of space.drivers/staging/octeon-usb/octeon-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/octeon-usb/octeon-hcd.c +0
-0
drivers/staging/octeon-usb/octeon-hcd.c struct octeon_hcd { · line 415
Quoted 5 lines
drivers/staging/octeon-usb/octeon-hcd.c +1
-1@@ -412,7 +412,7 @@ struct octeon_hcd {type c; \while (1 ) { \ c.u32 =__cvmx_usb_read_csr32 (usb, address); \ - if (c.s.field op (value)) { \ + if (c.s.field op value) { \
These are parentheses. Braces are {}.
But the change is not a good idea. I assume that value is a parameter of the macro. There are some expressions that when inlined here will have the wrong precedence if you don't use the parentheses.
julia
Quoted 13 lines
drivers/staging/octeon-usb/octeon-hcd.c +0
-0result =0 ; \break ; \ }else if (cvmx_get_cycle () > done) { \Signature · 8 lines
1.9.1 -- 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/1424712752-3728-1-git-send-email-ksenija.stanojevic%40gmail.com. For more options, visit https://groups.google.com/d/optout.