brcm2708: rename target to bcm27xx
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-4.19 / 950-0319-vcsm-Remove-set-but-unused-variable.patch
1 From 5a58b2bb907d57dc2b1cc2619bd5f1d948509e3e Mon Sep 17 00:00:00 2001
2 From: Kieran Bingham <kieran.bingham@ideasonboard.com>
3 Date: Mon, 18 Mar 2019 17:16:41 +0000
4 Subject: [PATCH] vcsm: Remove set but unused variable
5
6 The 'success' variable is set by the call to vchi_service_close() but never checked.
7 Remove it, keeping the call in place.
8
9 Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
10 ---
11 drivers/char/broadcom/vc_sm/vc_vchi_sm.c | 4 +---
12 1 file changed, 1 insertion(+), 3 deletions(-)
13
14 --- a/drivers/char/broadcom/vc_sm/vc_vchi_sm.c
15 +++ b/drivers/char/broadcom/vc_sm/vc_vchi_sm.c
16 @@ -361,11 +361,9 @@ int vc_vchi_sm_stop(struct sm_instance *
17
18 /* Close all VCHI service connections */
19 for (i = 0; i < instance->num_connections; i++) {
20 - int32_t success;
21 -
22 vchi_service_use(instance->vchi_handle[i]);
23
24 - success = vchi_service_close(instance->vchi_handle[i]);
25 + vchi_service_close(instance->vchi_handle[i]);
26 }
27
28 kfree(instance);