ata: libata-core: remove redundant err_mask variable
authorJinpeng Cui <cui.jinpeng2@zte.com.cn>
Tue, 23 Aug 2022 12:29:14 +0000 (12:29 +0000)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 25 Aug 2022 22:46:08 +0000 (07:46 +0900)
commit614065aba7041fab831e7c69ca8c7adebbc0430c
tree069fedcc1f2cd99b82161e6741411559d7f5bf7c
parentfee6073051c394dbec21d7024d90e31e0ff3f678
ata: libata-core: remove redundant err_mask variable

Return value from ata_exec_internal() directly instead of
taking this in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Jinpeng Cui <cui.jinpeng2@zte.com.cn>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libata-core.c