ata: libata: make ata_host_suspend() *void*
authorSergey Shtylyov <s.shtylyov@omp.ru>
Wed, 2 Feb 2022 20:58:21 +0000 (23:58 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Sat, 19 Feb 2022 02:18:35 +0000 (11:18 +0900)
commitec87cf3782f7b05ae15e061d36c763c35488f292
treefd9579e56dd60e6a241f1fd55be48d7a4fc45c1e
parentac1eb6655be440b6c0199f6bc9d20d610fc29d0d
ata: libata: make ata_host_suspend() *void*

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>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
16 files changed:
drivers/ata/ahci.c
drivers/ata/ata_piix.c
drivers/ata/libahci_platform.c
drivers/ata/libata-core.c
drivers/ata/pata_arasan_cf.c
drivers/ata/pata_cs5520.c
drivers/ata/pata_imx.c
drivers/ata/pata_macio.c
drivers/ata/pata_mpc52xx.c
drivers/ata/pata_samsung_cf.c
drivers/ata/pata_triflex.c
drivers/ata/sata_fsl.c
drivers/ata/sata_highbank.c
drivers/ata/sata_mv.c
drivers/ata/sata_rcar.c
include/linux/libata.h