[SeaBIOS] [PATCH 2/3] ahci: remote some parentheses

Gerd Hoffmann kraxel at redhat.com
Tue Nov 26 14:23:40 CET 2013


Minor cleanups.

Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
 src/hw/ahci.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/hw/ahci.c b/src/hw/ahci.c
index 09e786d..5984c1c 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);
-- 
1.8.3.1




More information about the SeaBIOS mailing list