aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/ahci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-11-26 14:02:54 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-12-04 10:59:35 +0100
commit4a0f366ac380af50849ca5a03cdbc8fa3ac2781c (patch)
treeaab257b8fb56492c99b5cbb45d715b4ea1f830fa /src/hw/ahci.c
parent26ae90b1ac64c1f585bbefc7a17f64fdbac12bc8 (diff)
downloadseabios-4a0f366ac380af50849ca5a03cdbc8fa3ac2781c.tar.gz
ahci: remote some parentheses
Minor cleanups. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/hw/ahci.c')
-rw-r--r--src/hw/ahci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hw/ahci.c b/src/hw/ahci.c
index 09e786d3..5984c1c9 100644
--- a/src/hw/ahci.c
+++ b/src/hw/ahci.c
@@ -113,8 +113,8 @@ static int ahci_command(struct ahci_port_s *port_gf, int iswrite, int isatapi,
u32 pnr = port_gf->pnr;
cmd->fis.reg = 0x27;
- cmd->fis.pmp_type = (1 << 7); /* cmd fis */
- cmd->prdt[0].base = ((u32)buffer);
+ cmd->fis.pmp_type = 1 << 7; /* cmd fis */
+ cmd->prdt[0].base = (u32)buffer;
cmd->prdt[0].baseu = 0;
cmd->prdt[0].flags = bsize-1;
@@ -124,7 +124,7 @@ static int ahci_command(struct ahci_port_s *port_gf, int iswrite, int isatapi,
(5 << 0)); /* fis length (dwords) */
list[0].flags = flags;
list[0].bytes = 0;
- list[0].base = ((u32)(cmd));
+ list[0].base = (u32)(cmd);
list[0].baseu = 0;
dprintf(8, "AHCI/%d: send cmd ...\n", pnr);