staging: vchiq_arm: delete unnecessary check
Subsystems (3)
PATCH 1/1 staging: vchiq_arm: delete unnecessary check
Both sides of this if else statement print exactly the same thing. Delete the unnecessary if statement.
Signed-off-by Dan Carpenter <[email protected]>
--- .../staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +1 -4
@@ -4001,10 +4001,7 @@ void vchiq_log_dump_mem(struct device *dev, const char *label, u32 addr, } *s++ ='\0' ; -if (label && (*label !='\0' )) -dev_dbg (dev,"core: %s: %08x: %s\n" , label, addr, line_buf); -else -dev_dbg (dev,"core: %s: %08x: %s\n" , label, addr, line_buf); +dev_dbg (dev,"core: %s: %08x: %s\n" , label, addr, line_buf); addr +=16 ; mem +=16 ;
Signature · 1 line
2.51.0
Quoted 4 lines · Dan Carpenter
Both sides of this if else statement print exactly the same thing. Delete the unnecessary if statement.
Signed-off-by Dan Carpenter <[email protected]>
LGTM,
Reviewed-by Umang Jain <[email protected]>
Quoted 20 lines
--- .../staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +1
-4@@ -4001,10 +4001,7 @@ void vchiq_log_dump_mem(struct device *dev, const char *label, u32 addr, } *s++ ='\0' ; -if (label && (*label !='\0' )) -dev_dbg (dev,"core: %s: %08x: %s\n" , label, addr, line_buf); -else -dev_dbg (dev,"core: %s: %08x: %s\n" , label, addr, line_buf); +dev_dbg (dev,"core: %s: %08x: %s\n" , label, addr, line_buf); addr +=16 ; mem +=16 ;