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