Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

IB/ipath: Remove some useless (void) casts

parent 928e3e4b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1243,9 +1243,9 @@ reloop:
				lval = dd->ipath_rhdrhead_intr_off | l;
			else
				lval = l;
			(void)ipath_write_ureg(dd, ur_rcvhdrhead, lval, 0);
			ipath_write_ureg(dd, ur_rcvhdrhead, lval, 0);
			if (updegr) {
				(void)ipath_write_ureg(dd, ur_rcvegrindexhead,
				ipath_write_ureg(dd, ur_rcvegrindexhead,
						 etail, 0);
				updegr = 0;
			}
+6 −6
Original line number Diff line number Diff line
@@ -495,10 +495,10 @@ static void enable_chip(struct ipath_devdata *dd,
	 * head values to match.
	 */
	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 */
	(void)ipath_write_ureg(dd, ur_rcvhdrhead,
	ipath_write_ureg(dd, ur_rcvhdrhead,
			 dd->ipath_rhdrhead_intr_off |
			 dd->ipath_pd[0]->port_head, 0);

@@ -769,7 +769,7 @@ int ipath_init_chip(struct ipath_devdata *dd, int reinit)
			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);
	/*
	 * this is to detect s/w errors, which the h/w works around by