Commit 914789ac authored by Lijun Pan's avatar Lijun Pan Committed by David S. Miller

ibmvnic: avoid multiple line dereference

Fix the following checkpatch warning:
WARNING: Avoid multiple line dereference
Signed-off-by: default avatarLijun Pan <lijunp213@gmail.com>
Reviewed-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f78afaac
...@@ -2440,9 +2440,8 @@ static int ibmvnic_poll(struct napi_struct *napi, int budget) ...@@ -2440,9 +2440,8 @@ static int ibmvnic_poll(struct napi_struct *napi, int budget)
if (!pending_scrq(adapter, rx_scrq)) if (!pending_scrq(adapter, rx_scrq))
break; break;
next = ibmvnic_next_scrq(adapter, rx_scrq); next = ibmvnic_next_scrq(adapter, rx_scrq);
rx_buff = rx_buff = (struct ibmvnic_rx_buff *)
(struct ibmvnic_rx_buff *)be64_to_cpu(next-> be64_to_cpu(next->rx_comp.correlator);
rx_comp.correlator);
/* do error checking */ /* do error checking */
if (next->rx_comp.rc) { if (next->rx_comp.rc) {
netdev_dbg(netdev, "rx buffer returned with rc %x\n", netdev_dbg(netdev, "rx buffer returned with rc %x\n",
...@@ -3855,15 +3854,15 @@ static int send_login(struct ibmvnic_adapter *adapter) ...@@ -3855,15 +3854,15 @@ static int send_login(struct ibmvnic_adapter *adapter)
for (i = 0; i < adapter->req_tx_queues; i++) { for (i = 0; i < adapter->req_tx_queues; i++) {
if (adapter->tx_scrq[i]) { if (adapter->tx_scrq[i]) {
tx_list_p[i] = cpu_to_be64(adapter->tx_scrq[i]-> tx_list_p[i] =
crq_num); cpu_to_be64(adapter->tx_scrq[i]->crq_num);
} }
} }
for (i = 0; i < adapter->req_rx_queues; i++) { for (i = 0; i < adapter->req_rx_queues; i++) {
if (adapter->rx_scrq[i]) { if (adapter->rx_scrq[i]) {
rx_list_p[i] = cpu_to_be64(adapter->rx_scrq[i]-> rx_list_p[i] =
crq_num); cpu_to_be64(adapter->rx_scrq[i]->crq_num);
} }
} }
...@@ -4406,8 +4405,8 @@ static void handle_request_cap_rsp(union ibmvnic_crq *crq, ...@@ -4406,8 +4405,8 @@ static void handle_request_cap_rsp(union ibmvnic_crq *crq,
case PARTIALSUCCESS: case PARTIALSUCCESS:
dev_info(dev, "req=%lld, rsp=%ld in %s queue, retrying.\n", dev_info(dev, "req=%lld, rsp=%ld in %s queue, retrying.\n",
*req_value, *req_value,
(long)be64_to_cpu(crq->request_capability_rsp. (long)be64_to_cpu(crq->request_capability_rsp.number),
number), name); name);
if (be16_to_cpu(crq->request_capability_rsp.capability) == if (be16_to_cpu(crq->request_capability_rsp.capability) ==
REQ_MTU) { REQ_MTU) {
......
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