From: Hannes Reinecke <hare@suse.de>
To: Sergey Shtylyov <s.shtylyov@omp.ru>,
Damien Le Moal <damien.lemoal@opensource.wdc.com>,
linux-ide@vger.kernel.org
Cc: Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
NXP Linux Team <linux-imx@nxp.com>,
linux-arm-kernel@lists.infradead.org,
Hans de Goede <hdegoede@redhat.com>, Jens Axboe <axboe@kernel.dk>,
Viresh Kumar <vireshk@kernel.org>
Subject: Re: [PATCH] libata: make ata_host_suspend() *void*
Date: Thu, 3 Feb 2022 08:26:05 +0100 [thread overview]
Message-ID: <8f4e6436-e5a1-201d-6bb7-548ed3abad9c@suse.de> (raw)
In-Reply-To: <7cb64472-9e37-704a-0b9a-52ed050c1826@omp.ru>
On 2/2/22 21:58, Sergey Shtylyov wrote:
> ata_host_suspend() always returns 0, so the result checks in many drivers
> look pointless. Let's make this function return *void* instead of *int*.
>
> Found by Linux Verification Center (linuxtesting.org) with the SVACE static
> analysis tool.
>
> Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
>
> ---
> This patch is against the 'for-next' branch of Damien Le Moal's 'libata.git'
> repo.
>
> drivers/ata/ahci.c | 3 ++-
> drivers/ata/ata_piix.c | 5 +----
> drivers/ata/libahci_platform.c | 3 ++-
> drivers/ata/libata-core.c | 8 ++------
> drivers/ata/pata_arasan_cf.c | 3 ++-
> drivers/ata/pata_cs5520.c | 5 +----
> drivers/ata/pata_imx.c | 15 ++++++---------
> drivers/ata/pata_macio.c | 6 +-----
> drivers/ata/pata_mpc52xx.c | 3 ++-
> drivers/ata/pata_samsung_cf.c | 3 ++-
> drivers/ata/pata_triflex.c | 5 +----
> drivers/ata/sata_fsl.c | 4 +++-
> drivers/ata/sata_highbank.c | 3 ++-
> drivers/ata/sata_mv.c | 6 +++---
> drivers/ata/sata_rcar.c | 18 ++++++++----------
> include/linux/libata.h | 2 +-
> 16 files changed, 39 insertions(+), 53 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
next prev parent reply other threads:[~2022-02-03 7:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-02 20:58 [PATCH] libata: make ata_host_suspend() *void* Sergey Shtylyov
2022-02-02 23:55 ` Damien Le Moal
2022-02-03 6:44 ` Uwe Kleine-König
2022-02-03 7:26 ` Hannes Reinecke [this message]
2022-02-04 7:50 ` Damien Le Moal
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=8f4e6436-e5a1-201d-6bb7-548ed3abad9c@suse.de \
--to=hare@suse.de \
--cc=axboe@kernel.dk \
--cc=damien.lemoal@opensource.wdc.com \
--cc=festevam@gmail.com \
--cc=hdegoede@redhat.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-imx@nxp.com \
--cc=s.hauer@pengutronix.de \
--cc=s.shtylyov@omp.ru \
--cc=shawnguo@kernel.org \
--cc=vireshk@kernel.org \
/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