Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
Greg Kroah-Hartman
70421f9b 79b67612

+1 -4
+1 -4
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
··· 4001 4001 } 4002 4002 *s++ = '\0'; 4003 4003 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); 4008 4005 4009 4006 addr += 16; 4010 4007 mem += 16;