Commit 82b81661 authored by Qianfeng Rong's avatar Qianfeng Rong Committed by Damien Le Moal
Browse files

ata: ahci_xgene: Use int type for 'rc' to store error codes



Use int instead of u32 for the 'rc' variable in xgene_ahci_softreset()
to store negative error codes returned by ahci_do_softreset().

In xgene_ahci_pmp_softreset(), remove the redundant 'rc' variable and
directly return the result of the ahci_do_softreset() call instead.

Signed-off-by: default avatarQianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
parent 70c1595c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment