]> xenbits.xensource.com Git - seabios.git/commitdiff
ahci: remote some parentheses
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 26 Nov 2013 13:02:54 +0000 (14:02 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 4 Dec 2013 09:59:35 +0000 (10:59 +0100)
Minor cleanups.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/hw/ahci.c

index 09e786d3361533b7c885a1094a51c6e7c4d5b69c..5984c1c93471167e636350ce9684858f4204b553 100644 (file)
@@ -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);