mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
a28453c042
commit
5b7696499c
1 changed files with 2 additions and 7 deletions
|
|
@ -1375,13 +1375,8 @@ netxen_receive_peg_ready(struct netxen_adapter *adapter)
|
|||
|
||||
} while (--retries);
|
||||
|
||||
if (!retries) {
|
||||
printk(KERN_ERR "Receive Peg initialization not "
|
||||
"complete, state: 0x%x.\n", val);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
return 0;
|
||||
pr_err("Receive Peg initialization not complete, state: 0x%x.\n", val);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
int netxen_init_firmware(struct netxen_adapter *adapter)
|
||||
|
|
|
|||
Loading…
Reference in a new issue