Commit 30d84860 authored by kbuild test robot's avatar kbuild test robot Committed by Greg Kroah-Hartman

staging: vc04_services: fix returnvar.cocci warnings

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1788:16-22: Unneeded variable: "status". Return "VCHIQ_SUCCESS" on line 1824

 Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Reviewed-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 53a6e71f
......@@ -1785,8 +1785,6 @@ vchiq_keepalive_thread_func(void *v)
VCHIQ_STATUS_T
vchiq_arm_init_state(VCHIQ_STATE_T *state, VCHIQ_ARM_STATE_T *arm_state)
{
VCHIQ_STATUS_T status = VCHIQ_SUCCESS;
if (arm_state) {
rwlock_init(&arm_state->susp_res_lock);
......@@ -1820,7 +1818,7 @@ vchiq_arm_init_state(VCHIQ_STATE_T *state, VCHIQ_ARM_STATE_T *arm_state)
arm_state->first_connect = 0;
}
return status;
return VCHIQ_SUCCESS;
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment