diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-09-20 08:29:29 +0200 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-09-21 04:17:05 +0200 |
commit | cb6e73aaadff73751bb1c01349e58f2c6428e0a8 (patch) | |
tree | ad56840ec06311c866925bc2cf3b1c24d543fed5 /drivers/ata | |
parent | ata: ahci_st: Enable compile test (diff) | |
download | linux-cb6e73aaadff73751bb1c01349e58f2c6428e0a8.tar.xz linux-cb6e73aaadff73751bb1c01349e58f2c6428e0a8.zip |
ata: libata-eh: Remove the unneeded result variable
Return the value ata_port_abort() directly instead of storing it in
another redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-eh.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index ef4508d72c02..c7827ad6360f 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@ -1086,14 +1086,11 @@ static void __ata_port_freeze(struct ata_port *ap) */ int ata_port_freeze(struct ata_port *ap) { - int nr_aborted; - WARN_ON(!ap->ops->error_handler); __ata_port_freeze(ap); - nr_aborted = ata_port_abort(ap); - return nr_aborted; + return ata_port_abort(ap); } EXPORT_SYMBOL_GPL(ata_port_freeze); |