aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorRalph Campbell <ralph.campbell@qlogic.com>2008-04-17 00:09:26 -0400
committerRoland Dreier <rolandd@cisco.com>2008-04-17 00:09:26 -0400
commit8c641d4b5f6653b6c486eab4d8e8d59539066f31 (patch)
treef3352731eca5a37fe367f11846239b49e2a0044b /drivers/infiniband/hw
parent928e3e4bb9b0d3172bdb44d49b604fa6601078bb (diff)
IB/ipath: Remove some useless (void) casts
Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_driver.c6
-rw-r--r--drivers/infiniband/hw/ipath/ipath_init_chip.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c
index 29b3823bfa4..130f4db7b8c 100644
--- a/drivers/infiniband/hw/ipath/ipath_driver.c
+++ b/drivers/infiniband/hw/ipath/ipath_driver.c
@@ -1243,10 +1243,10 @@ reloop:
1243 lval = dd->ipath_rhdrhead_intr_off | l; 1243 lval = dd->ipath_rhdrhead_intr_off | l;
1244 else 1244 else
1245 lval = l; 1245 lval = l;
1246 (void)ipath_write_ureg(dd, ur_rcvhdrhead, lval, 0); 1246 ipath_write_ureg(dd, ur_rcvhdrhead, lval, 0);
1247 if (updegr) { 1247 if (updegr) {
1248 (void)ipath_write_ureg(dd, ur_rcvegrindexhead, 1248 ipath_write_ureg(dd, ur_rcvegrindexhead,
1249 etail, 0); 1249 etail, 0);
1250 updegr = 0; 1250 updegr = 0;
1251 } 1251 }
1252 } 1252 }
diff --git a/drivers/infiniband/hw/ipath/ipath_init_chip.c b/drivers/infiniband/hw/ipath/ipath_init_chip.c
index bed0927916c..524fdf7d8c8 100644
--- a/drivers/infiniband/hw/ipath/ipath_init_chip.c
+++ b/drivers/infiniband/hw/ipath/ipath_init_chip.c
@@ -495,12 +495,12 @@ static void enable_chip(struct ipath_devdata *dd,
495 * head values to match. 495 * head values to match.
496 */ 496 */
497 val = ipath_read_ureg32(dd, ur_rcvegrindextail, 0); 497 val = ipath_read_ureg32(dd, ur_rcvegrindextail, 0);
498 (void)ipath_write_ureg(dd, ur_rcvegrindexhead, val, 0); 498 ipath_write_ureg(dd, ur_rcvegrindexhead, val, 0);
499 499
500 /* Initialize so we interrupt on next packet received */ 500 /* Initialize so we interrupt on next packet received */
501 (void)ipath_write_ureg(dd, ur_rcvhdrhead, 501 ipath_write_ureg(dd, ur_rcvhdrhead,
502 dd->ipath_rhdrhead_intr_off | 502 dd->ipath_rhdrhead_intr_off |
503 dd->ipath_pd[0]->port_head, 0); 503 dd->ipath_pd[0]->port_head, 0);
504 504
505 /* 505 /*
506 * by now pioavail updates to memory should have occurred, so 506 * by now pioavail updates to memory should have occurred, so
@@ -769,8 +769,8 @@ int ipath_init_chip(struct ipath_devdata *dd, int reinit)
769 goto done; 769 goto done;
770 } 770 }
771 771
772 (void)ipath_write_kreg(dd, dd->ipath_kregs->kr_sendpioavailaddr, 772 ipath_write_kreg(dd, dd->ipath_kregs->kr_sendpioavailaddr,
773 dd->ipath_pioavailregs_phys); 773 dd->ipath_pioavailregs_phys);
774 /* 774 /*
775 * this is to detect s/w errors, which the h/w works around by 775 * this is to detect s/w errors, which the h/w works around by
776 * ignoring the low 6 bits of address, if it wasn't aligned. 776 * ignoring the low 6 bits of address, if it wasn't aligned.