Commit 8c641d4b authored by Ralph Campbell's avatar Ralph Campbell Committed by Roland Dreier

IB/ipath: Remove some useless (void) casts

Signed-off-by: default avatarRalph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 928e3e4b
...@@ -1243,10 +1243,10 @@ void ipath_kreceive(struct ipath_portdata *pd) ...@@ -1243,10 +1243,10 @@ void ipath_kreceive(struct ipath_portdata *pd)
lval = dd->ipath_rhdrhead_intr_off | l; lval = dd->ipath_rhdrhead_intr_off | l;
else else
lval = l; lval = l;
(void)ipath_write_ureg(dd, ur_rcvhdrhead, lval, 0); ipath_write_ureg(dd, ur_rcvhdrhead, lval, 0);
if (updegr) { if (updegr) {
(void)ipath_write_ureg(dd, ur_rcvegrindexhead, ipath_write_ureg(dd, ur_rcvegrindexhead,
etail, 0); etail, 0);
updegr = 0; updegr = 0;
} }
} }
......
...@@ -495,12 +495,12 @@ static void enable_chip(struct ipath_devdata *dd, ...@@ -495,12 +495,12 @@ static void enable_chip(struct ipath_devdata *dd,
* head values to match. * head values to match.
*/ */
val = ipath_read_ureg32(dd, ur_rcvegrindextail, 0); val = ipath_read_ureg32(dd, ur_rcvegrindextail, 0);
(void)ipath_write_ureg(dd, ur_rcvegrindexhead, val, 0); ipath_write_ureg(dd, ur_rcvegrindexhead, val, 0);
/* Initialize so we interrupt on next packet received */ /* Initialize so we interrupt on next packet received */
(void)ipath_write_ureg(dd, ur_rcvhdrhead, ipath_write_ureg(dd, ur_rcvhdrhead,
dd->ipath_rhdrhead_intr_off | dd->ipath_rhdrhead_intr_off |
dd->ipath_pd[0]->port_head, 0); dd->ipath_pd[0]->port_head, 0);
/* /*
* by now pioavail updates to memory should have occurred, so * 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,8 +769,8 @@ int ipath_init_chip(struct ipath_devdata *dd, int reinit)
goto done; goto done;
} }
(void)ipath_write_kreg(dd, dd->ipath_kregs->kr_sendpioavailaddr, ipath_write_kreg(dd, dd->ipath_kregs->kr_sendpioavailaddr,
dd->ipath_pioavailregs_phys); dd->ipath_pioavailregs_phys);
/* /*
* this is to detect s/w errors, which the h/w works around by * this is to detect s/w errors, which the h/w works around by
* ignoring the low 6 bits of address, if it wasn't aligned. * ignoring the low 6 bits of address, if it wasn't aligned.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment