summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_ali.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-01-13 00:47:41 +0100
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-01-14 07:17:17 +0100
commit237fe8885a3fdab169bf670790c9f40046af45d3 (patch)
tree837a74c986fb3d618e805f41406da83712f48a3f /drivers/ata/pata_ali.c
parentata: ahci: Add support for AMD A85 FCH (Hudson D4) (diff)
downloadlinux-237fe8885a3fdab169bf670790c9f40046af45d3.tar.xz
linux-237fe8885a3fdab169bf670790c9f40046af45d3.zip
ata: pata_ali: remove redundant return statement
A return statement is unnecessarily complicated, currently value in variable mask is bitwise-masked and the variable is being updated and then returned. Just updating the mask is all that is required as the following statement is a return. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/pata_ali.c')
-rw-r--r--drivers/ata/pata_ali.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c
index ab28a6707b94..1b90cda27246 100644
--- a/drivers/ata/pata_ali.c
+++ b/drivers/ata/pata_ali.c
@@ -123,7 +123,7 @@ static unsigned long ali_20_filter(struct ata_device *adev, unsigned long mask)
mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA);
ata_id_c_string(adev->id, model_num, ATA_ID_PROD, sizeof(model_num));
if (strstr(model_num, "WDC"))
- return mask &= ~ATA_MASK_UDMA;
+ mask &= ~ATA_MASK_UDMA;
return mask;
}