From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Hongbo Yao <yaohongbo@huawei.com>, axboe@kernel.dk
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
linuxarm@huawei.com
Subject: Re: [PATCH] ata: acard-ahci: removeset but not used variable 'n_elem'
Date: Fri, 13 Dec 2019 12:03:12 +0300 [thread overview]
Message-ID: <68c9f17f-5e48-9c81-7933-ed0ffc4963e4@cogentembedded.com> (raw)
In-Reply-To: <20191213031157.52115-1-yaohongbo@huawei.com>
On 13.12.2019 6:11, Hongbo Yao wrote:
Space missing in the subject...
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/ata/acard-ahci.c: In function acard_ahci_qc_prep:
> drivers/ata/acard-ahci.c:268:15: warning: variable n_elem set but not
> used [-Wunused-but-set-variable]
>
> It is never used so can be removed. acard_ahci_fill_sg() is called only
> in one place, use 'void' instead of 'int'.
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Hongbo Yao <yaohongbo@huawei.com>
[...]
MBR, Sergei
prev parent reply other threads:[~2019-12-13 9:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-13 3:11 Hongbo Yao
2019-12-13 9:03 ` Sergei Shtylyov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=68c9f17f-5e48-9c81-7933-ed0ffc4963e4@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=axboe@kernel.dk \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=yaohongbo@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®