mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 15:07:13 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
84353aeeb5
commit
2a4033b2d4
@@ -2040,8 +2040,7 @@ sync_func(void *v)
|
||||
continue;
|
||||
}
|
||||
|
||||
svc_fourcc = service ? service->base.fourcc
|
||||
: VCHIQ_MAKE_FOURCC('?', '?', '?', '?');
|
||||
svc_fourcc = service->base.fourcc;
|
||||
|
||||
vchiq_log_trace(state->dev, VCHIQ_SYNC,
|
||||
"Rcvd Msg %s from %p4cc s:%d d:%d len:%d",
|
||||
|
||||
Reference in New Issue
Block a user