platform/chrome: cros_ec_lpc: remove redundant pointer request

"Linux Kernel Mailing List" <[email protected]> Sat, 10 Feb 2018 22:00:25 +0000 (UTC)
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/d3b56c566d4ba8cae688baf3cca94425d57ea783
Commit:     d3b56c566d4ba8cae688baf3cca94425d57ea783
Parent:     50a0d71a5d20e1d3eff1d974fdc8559ad6d74892
Refname:    refs/heads/master
Author:     Colin Ian King <[email protected]>
AuthorDate: Tue Oct 31 10:27:47 2017 +0000
Committer:  Benson Leung <[email protected]>
CommitDate: Sun Dec 17 14:04:11 2017 -0800

    platform/chrome: cros_ec_lpc: remove redundant pointer request
    
    Pointer request is being assigned but never used, so remove it. Cleans
    up the clang warning:
    
    drivers/platform/chrome/cros_ec_lpc.c:68:2: warning: Value stored to
    'request' is never read
    
    Signed-off-by: Colin Ian King <[email protected]>
    Signed-off-by: Benson Leung <[email protected]>
---
 drivers/platform/chrome/cros_ec_lpc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c
index 1baf720faf69..87e9747d229a 100644
--- a/drivers/platform/chrome/cros_ec_lpc.c
+++ b/drivers/platform/chrome/cros_ec_lpc.c
@@ -54,7 +54,6 @@ static int ec_response_timed_out(void)
 static int cros_ec_pkt_xfer_lpc(struct cros_ec_device *ec,
 				struct cros_ec_command *msg)
 {
-	struct ec_host_request *request;
 	struct ec_host_response response;
 	u8 sum;
 	int ret = 0;
@@ -65,8 +64,6 @@ static int cros_ec_pkt_xfer_lpc(struct cros_ec_device *ec,
 	/* Write buffer */
 	cros_ec_lpc_write_bytes(EC_LPC_ADDR_HOST_PACKET, ret, ec->dout);
 
-	request = (struct ec_host_request *)ec->dout;