9
0
Fork 0

ata/ahci: simplify ahci_read_id

This is a dummy commit log body because I consider the change to trivial
to write something sensible.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Uwe Kleine-König 2016-12-17 21:46:44 +01:00 committed by Sascha Hauer
parent fb28915aac
commit 5c8251315b
1 changed files with 1 additions and 6 deletions

View File

@ -207,7 +207,6 @@ static int ahci_read_id(struct ata_port *ata, void *buf)
{
struct ahci_port *ahci = container_of(ata, struct ahci_port, ata);
u8 fis[20];
int ret;
memset(fis, 0, sizeof(fis));
@ -216,11 +215,7 @@ static int ahci_read_id(struct ata_port *ata, void *buf)
fis[1] = 1 << 7; /* Command FIS. */
fis[2] = ATA_CMD_ID_ATA; /* Command byte. */
ret = ahci_io(ahci, fis, sizeof(fis), buf, NULL, SECTOR_SIZE);
if (ret)
return ret;
return ret;
return ahci_io(ahci, fis, sizeof(fis), buf, NULL, SECTOR_SIZE);
}
static int ahci_rw(struct ata_port *ata, void *rbuf, const void *wbuf,