]>
Commit | Line | Data |
---|---|---|
19956850 GKH |
1 | From d3b56c566d4ba8cae688baf3cca94425d57ea783 Mon Sep 17 00:00:00 2001 |
2 | From: Colin Ian King <colin.king@canonical.com> | |
3 | Date: Tue, 31 Oct 2017 10:27:47 +0000 | |
4 | Subject: platform/chrome: cros_ec_lpc: remove redundant pointer request | |
5 | ||
6 | From: Colin Ian King <colin.king@canonical.com> | |
7 | ||
8 | commit d3b56c566d4ba8cae688baf3cca94425d57ea783 upstream. | |
9 | ||
10 | Pointer request is being assigned but never used, so remove it. Cleans | |
11 | up the clang warning: | |
12 | ||
13 | drivers/platform/chrome/cros_ec_lpc.c:68:2: warning: Value stored to | |
14 | 'request' is never read | |
15 | ||
16 | Signed-off-by: Colin Ian King <colin.king@canonical.com> | |
17 | Signed-off-by: Benson Leung <bleung@chromium.org> | |
18 | Cc: Guenter Roeck <linux@roeck-us.net> | |
19 | Signed-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); |