mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
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>
This commit is contained in:
committed by
Damien Le Moal
parent
ecf8322f46
commit
cb6e73aaad
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user