[PATCH] libata: make ata_host_suspend() *void*

Damien Le Moal damien.lemoal at opensource.wdc.com
Thu Feb 3 23:50:31 PST 2022


On 2/3/22 05: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 at omp.ru>

Applied to for-5.18. Thanks !

-- 
Damien Le Moal
Western Digital Research



More information about the linux-arm-kernel mailing list