Commit db0e6a57 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman

staging: vc04_services: fix unused-but-set-variable warning

Fix gcc used-but-set-variable warning:

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c: In function vchiq_release_internal:
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:2827:16: warning:
 variable local_entity_uc set but not used [-Wunused-but-set-variable]
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:2827:6: warning:
 variable local_uc set but not used [-Wunused-but-set-variable]

Remove the unused variables 'local_entity_uc' and 'local_uc'
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarStefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20190727013524.33168-1-yuehaibing@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 149726d3
...@@ -2824,7 +2824,6 @@ vchiq_release_internal(struct vchiq_state *state, struct vchiq_service *service) ...@@ -2824,7 +2824,6 @@ vchiq_release_internal(struct vchiq_state *state, struct vchiq_service *service)
VCHIQ_STATUS_T ret = VCHIQ_SUCCESS; VCHIQ_STATUS_T ret = VCHIQ_SUCCESS;
char entity[16]; char entity[16];
int *entity_uc; int *entity_uc;
int local_uc, local_entity_uc;
if (!arm_state) if (!arm_state)
goto out; goto out;
...@@ -2849,8 +2848,8 @@ vchiq_release_internal(struct vchiq_state *state, struct vchiq_service *service) ...@@ -2849,8 +2848,8 @@ vchiq_release_internal(struct vchiq_state *state, struct vchiq_service *service)
ret = VCHIQ_ERROR; ret = VCHIQ_ERROR;
goto unlock; goto unlock;
} }
local_uc = --arm_state->videocore_use_count; --arm_state->videocore_use_count;
local_entity_uc = --(*entity_uc); --(*entity_uc);
if (!vchiq_videocore_wanted(state)) { if (!vchiq_videocore_wanted(state)) {
if (vchiq_platform_use_suspend_timer() && if (vchiq_platform_use_suspend_timer() &&
......
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