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 369/806] vcsm: Remove set but unused variable
6 The 'success' variable is set by the call to vchi_service_close() but never checked.
7 Remove it, keeping the call in place.
9 Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
11 drivers/char/broadcom/vc_sm/vc_vchi_sm.c | 4 +---
12 1 file changed, 1 insertion(+), 3 deletions(-)
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 *
18 /* Close all VCHI service connections */
19 for (i = 0; i < instance->num_connections; i++) {
22 vchi_service_use(instance->vchi_handle[i]);
24 - success = vchi_service_close(instance->vchi_handle[i]);
25 + vchi_service_close(instance->vchi_handle[i]);