Skip to content

Commit 70421f9

Browse files
Dan Carpentergregkh
authored andcommitted
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 <dan.carpenter@linaro.org> Reviewed-by: Umang Jain <uajain@igalia.com> Link: https://patch.msgid.link/aQIS6Q73Ss8xyJTD@stanley.mountain Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 79b6761 commit 70421f9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • drivers/staging/vc04_services/interface/vchiq_arm

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4001,10 +4001,7 @@ void vchiq_log_dump_mem(struct device *dev, const char *label, u32 addr,
40014001
}
40024002
*s++ = '\0';
40034003

4004-
if (label && (*label != '\0'))
4005-
dev_dbg(dev, "core: %s: %08x: %s\n", label, addr, line_buf);
4006-
else
4007-
dev_dbg(dev, "core: %s: %08x: %s\n", label, addr, line_buf);
4004+
dev_dbg(dev, "core: %s: %08x: %s\n", label, addr, line_buf);
40084005

40094006
addr += 16;
40104007
mem += 16;

0 commit comments

Comments
 (0)