[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171216051350.GC79455@decatoncale.mtv.corp.google.com>
Date: Fri, 15 Dec 2017 21:13:50 -0800
From: Benson Leung <bleung@...gle.com>
To: Colin King <colin.king@...onical.com>
Cc: Benson Leung <bleung@...omium.org>,
Olof Johansson <olof@...om.net>,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] platform/chrome: cros_ec_lpc: remove redundant pointer
request
Hi Colin,
On Tue, Oct 31, 2017 at 10:27:47AM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> 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 <colin.king@...onical.com>
Thanks for the patch. Sorry for the delay. Applied for v4.16.
Thanks,
Benson
> ---
> 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;
> -
> /* Here we go */
> sum = EC_COMMAND_PROTOCOL_3;
> cros_ec_lpc_write_bytes(EC_LPC_ADDR_HOST_CMD, 1, &sum);
> --
> 2.14.1
>
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
bleung@...gle.com
Chromium OS Project
bleung@...omium.org
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists