“1eec9261245028b48fb0b6bc80c85e8bd87851d4”上不存在“...fluid/operators/distributed_ops/distributed_notify_op.cc”
提交 5b769649 编写于 作者: C Colin Ian King 提交者: David S. Miller

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a28453c0
...@@ -1375,13 +1375,8 @@ netxen_receive_peg_ready(struct netxen_adapter *adapter) ...@@ -1375,13 +1375,8 @@ 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 " return -EIO;
"complete, state: 0x%x.\n", val);
return -EIO;
}
return 0;
} }
int netxen_init_firmware(struct netxen_adapter *adapter) int netxen_init_firmware(struct netxen_adapter *adapter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册