staging: hp100: Remove unnecessary braces
PATCH 1/1 staging: hp100: Remove unnecessary braces
Remove unnecessary braces for single statement block
Signed-off-by Gokce Kuler <[email protected]>
--- drivers/staging/hp/hp100.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/hp/hp100.c +2 -2
@@ -2788,9 +2788,9 @@ void hp100_RegisterDump(struct net_device *dev)outw (Page, ioaddr +0x02 );for (Register =0x8 ; Register <0x22 ; Register +=2 ) {/* Display Register contents except data port */ -if (((Register !=0x10 ) && (Register !=0x12 )) || (Page >0 )) { +if (((Register !=0x10 ) && (Register !=0x12 )) || (Page >0 ))printk ("0x%.2x = 0x%.4x\n" , Register,inw (ioaddr + Register)); - } + } }hp100_page (PERFORMANCE );
Signature · 1 line
2.7.4
Quoted 12 lines · Gokce Kuler
Remove unnecessary braces for single statement block
Signed-off-by Gokce Kuler <[email protected]>--- drivers/staging/hp/hp100.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/hp/hp100.c +0
-0
drivers/staging/hp/hp100.c void hp100_RegisterDump(struct net_device *dev) · line 2793
Quoted 8 lines
drivers/staging/hp/hp100.c +2
-2@@ -2788,9 +2788,9 @@ void hp100_RegisterDump(struct net_device *dev)outw (Page, ioaddr +0x02 );for (Register =0x8 ; Register <0x22 ; Register +=2 ) {/* Display Register contents except data port */ -if (((Register !=0x10 ) && (Register !=0x12 )) || (Page >0 )) { +if (((Register !=0x10 ) && (Register !=0x12 )) || (Page >0 ))printk ("0x%.2x = 0x%.4x\n" , Register,inw (ioaddr + Register)); - } +
There is no need to add a blank line here.
julia
Quoted 11 lines
drivers/staging/hp/hp100.c +0
-1} }hp100_page (PERFORMANCE ); --2.7.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 view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20200322003441.GA847%40siyah2.