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

staging: vc04_services: remove unnecessary NULL check

We ensured that "service" as non-NULL in the previous if statement so
there is no need to check again here.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/1dff4d9b-d067-4525-95e0-ffdc1185cccd@moroto.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dan Carpenter and committed by
Greg Kroah-Hartman
2a4033b2 84353aee

+1 -2
+1 -2
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
··· 2040 2040 continue; 2041 2041 } 2042 2042 2043 - svc_fourcc = service ? service->base.fourcc 2044 - : VCHIQ_MAKE_FOURCC('?', '?', '?', '?'); 2043 + svc_fourcc = service->base.fourcc; 2045 2044 2046 2045 vchiq_log_trace(state->dev, VCHIQ_SYNC, 2047 2046 "Rcvd Msg %s from %p4cc s:%d d:%d len:%d",