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

Commit 5b769649 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

netxen_nic: remove redundant check if retries is zero



At the end of the timeout loop, retries will always be zero so
the check for zero is redundant so remove it.  Also replace
printk with pr_err as recommended by checkpatch.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a28453c0
Loading
Loading
Loading
Loading
+2 −7
Original line number Original line Diff line number Diff line
@@ -1375,15 +1375,10 @@ netxen_receive_peg_ready(struct netxen_adapter *adapter)


	} while (--retries);
	} while (--retries);


	if (!retries) {
	pr_err("Receive Peg initialization not complete, state: 0x%x.\n", val);
		printk(KERN_ERR "Receive Peg initialization not "
			      "complete, state: 0x%x.\n", val);
	return -EIO;
	return -EIO;
}
}


	return 0;
}

int netxen_init_firmware(struct netxen_adapter *adapter)
int netxen_init_firmware(struct netxen_adapter *adapter)
{
{
	int err;
	int err;