]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.14.48/platform-chrome-cros_ec_lpc-remove-redundant-pointer-request.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.14.48 / platform-chrome-cros_ec_lpc-remove-redundant-pointer-request.patch
CommitLineData
19956850
GKH
1From d3b56c566d4ba8cae688baf3cca94425d57ea783 Mon Sep 17 00:00:00 2001
2From: Colin Ian King <colin.king@canonical.com>
3Date: Tue, 31 Oct 2017 10:27:47 +0000
4Subject: platform/chrome: cros_ec_lpc: remove redundant pointer request
5
6From: Colin Ian King <colin.king@canonical.com>
7
8commit d3b56c566d4ba8cae688baf3cca94425d57ea783 upstream.
9
10Pointer request is being assigned but never used, so remove it. Cleans
11up the clang warning:
12
13drivers/platform/chrome/cros_ec_lpc.c:68:2: warning: Value stored to
14'request' is never read
15
16Signed-off-by: Colin Ian King <colin.king@canonical.com>
17Signed-off-by: Benson Leung <bleung@chromium.org>
18Cc: Guenter Roeck <linux@roeck-us.net>
19Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21---
22 drivers/platform/chrome/cros_ec_lpc.c | 3 ---
23 1 file changed, 3 deletions(-)
24
25--- a/drivers/platform/chrome/cros_ec_lpc.c
26+++ b/drivers/platform/chrome/cros_ec_lpc.c
27@@ -54,7 +54,6 @@ static int ec_response_timed_out(void)
28 static int cros_ec_pkt_xfer_lpc(struct cros_ec_device *ec,
29 struct cros_ec_command *msg)
30 {
31- struct ec_host_request *request;
32 struct ec_host_response response;
33 u8 sum;
34 int ret = 0;
35@@ -65,8 +64,6 @@ static int cros_ec_pkt_xfer_lpc(struct c
36 /* Write buffer */
37 cros_ec_lpc_write_bytes(EC_LPC_ADDR_HOST_PACKET, ret, ec->dout);
38
39- request = (struct ec_host_request *)ec->dout;
40-
41 /* Here we go */
42 sum = EC_COMMAND_PROTOCOL_3;
43 cros_ec_lpc_write_bytes(EC_LPC_ADDR_HOST_CMD, 1, &sum);