Commit 0eee6778 authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman

staging: lustre: remove unnecessary parentheses around LNet function pointer

No need for the parentheses around any function pointer.
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c314c319
...@@ -2185,7 +2185,7 @@ kiblnd_passive_connect(struct rdma_cm_id *cmid, void *priv, int priv_nob) ...@@ -2185,7 +2185,7 @@ kiblnd_passive_connect(struct rdma_cm_id *cmid, void *priv, int priv_nob)
rej.ibr_why = IBLND_REJECT_FATAL; rej.ibr_why = IBLND_REJECT_FATAL;
rej.ibr_cp.ibcp_max_msg_size = IBLND_MSG_SIZE; rej.ibr_cp.ibcp_max_msg_size = IBLND_MSG_SIZE;
peer_addr = (struct sockaddr_in *)&(cmid->route.addr.dst_addr); peer_addr = (struct sockaddr_in *)&cmid->route.addr.dst_addr;
if (*kiblnd_tunables.kib_require_priv_port && if (*kiblnd_tunables.kib_require_priv_port &&
ntohs(peer_addr->sin_port) >= PROT_SOCK) { ntohs(peer_addr->sin_port) >= PROT_SOCK) {
__u32 ip = ntohl(peer_addr->sin_addr.s_addr); __u32 ip = ntohl(peer_addr->sin_addr.s_addr);
......
...@@ -935,7 +935,7 @@ lnet_shutdown_lndnis(void) ...@@ -935,7 +935,7 @@ lnet_shutdown_lndnis(void)
islo = ni->ni_lnd->lnd_type == LOLND; islo = ni->ni_lnd->lnd_type == LOLND;
LASSERT(!in_interrupt()); LASSERT(!in_interrupt());
(ni->ni_lnd->lnd_shutdown)(ni); ni->ni_lnd->lnd_shutdown(ni);
/* /*
* can't deref lnd anymore now; it might have unregistered * can't deref lnd anymore now; it might have unregistered
...@@ -1023,7 +1023,7 @@ lnet_startup_lndnis(void) ...@@ -1023,7 +1023,7 @@ lnet_startup_lndnis(void)
ni->ni_lnd = lnd; ni->ni_lnd = lnd;
rc = (lnd->lnd_startup)(ni); rc = lnd->lnd_startup(ni);
mutex_unlock(&the_lnet.ln_lnd_mutex); mutex_unlock(&the_lnet.ln_lnd_mutex);
......
...@@ -599,8 +599,8 @@ lnet_ni_recv(lnet_ni_t *ni, void *private, lnet_msg_t *msg, int delayed, ...@@ -599,8 +599,8 @@ lnet_ni_recv(lnet_ni_t *ni, void *private, lnet_msg_t *msg, int delayed,
} }
} }
rc = (ni->ni_lnd->lnd_recv)(ni, private, msg, delayed, rc = ni->ni_lnd->lnd_recv(ni, private, msg, delayed,
niov, iov, kiov, offset, mlen, rlen); niov, iov, kiov, offset, mlen, rlen);
if (rc < 0) if (rc < 0)
lnet_finalize(ni, msg, rc); lnet_finalize(ni, msg, rc);
} }
...@@ -655,7 +655,7 @@ lnet_ni_send(lnet_ni_t *ni, lnet_msg_t *msg) ...@@ -655,7 +655,7 @@ lnet_ni_send(lnet_ni_t *ni, lnet_msg_t *msg)
LASSERT(LNET_NETTYP(LNET_NIDNET(ni->ni_nid)) == LOLND || LASSERT(LNET_NETTYP(LNET_NIDNET(ni->ni_nid)) == LOLND ||
(msg->msg_txcredit && msg->msg_peertxcredit)); (msg->msg_txcredit && msg->msg_peertxcredit));
rc = (ni->ni_lnd->lnd_send)(ni, priv, msg); rc = ni->ni_lnd->lnd_send(ni, priv, msg);
if (rc < 0) if (rc < 0)
lnet_finalize(ni, msg, rc); lnet_finalize(ni, msg, rc);
} }
...@@ -671,8 +671,8 @@ lnet_ni_eager_recv(lnet_ni_t *ni, lnet_msg_t *msg) ...@@ -671,8 +671,8 @@ lnet_ni_eager_recv(lnet_ni_t *ni, lnet_msg_t *msg)
LASSERT(ni->ni_lnd->lnd_eager_recv != NULL); LASSERT(ni->ni_lnd->lnd_eager_recv != NULL);
msg->msg_rx_ready_delay = 1; msg->msg_rx_ready_delay = 1;
rc = (ni->ni_lnd->lnd_eager_recv)(ni, msg->msg_private, msg, rc = ni->ni_lnd->lnd_eager_recv(ni, msg->msg_private, msg,
&msg->msg_private); &msg->msg_private);
if (rc != 0) { if (rc != 0) {
CERROR("recv from %s / send to %s aborted: eager_recv failed %d\n", CERROR("recv from %s / send to %s aborted: eager_recv failed %d\n",
libcfs_nid2str(msg->msg_rxpeer->lp_nid), libcfs_nid2str(msg->msg_rxpeer->lp_nid),
...@@ -693,7 +693,7 @@ lnet_ni_query_locked(lnet_ni_t *ni, lnet_peer_t *lp) ...@@ -693,7 +693,7 @@ lnet_ni_query_locked(lnet_ni_t *ni, lnet_peer_t *lp)
LASSERT(ni->ni_lnd->lnd_query != NULL); LASSERT(ni->ni_lnd->lnd_query != NULL);
lnet_net_unlock(lp->lp_cpt); lnet_net_unlock(lp->lp_cpt);
(ni->ni_lnd->lnd_query)(ni, lp->lp_nid, &last_alive); ni->ni_lnd->lnd_query(ni, lp->lp_nid, &last_alive);
lnet_net_lock(lp->lp_cpt); lnet_net_lock(lp->lp_cpt);
lp->lp_last_query = cfs_time_current(); lp->lp_last_query = cfs_time_current();
......
...@@ -157,7 +157,7 @@ lnet_ni_notify_locked(lnet_ni_t *ni, lnet_peer_t *lp) ...@@ -157,7 +157,7 @@ lnet_ni_notify_locked(lnet_ni_t *ni, lnet_peer_t *lp)
* A new notification could happen now; I'll handle it * A new notification could happen now; I'll handle it
* when control returns to me * when control returns to me
*/ */
(ni->ni_lnd->lnd_notify)(ni, lp->lp_nid, alive); ni->ni_lnd->lnd_notify(ni, lp->lp_nid, alive);
lnet_net_lock(lp->lp_cpt); lnet_net_lock(lp->lp_cpt);
} }
...@@ -389,7 +389,7 @@ lnet_add_route(__u32 net, unsigned int hops, lnet_nid_t gateway, ...@@ -389,7 +389,7 @@ lnet_add_route(__u32 net, unsigned int hops, lnet_nid_t gateway,
/* XXX Assume alive */ /* XXX Assume alive */
if (ni->ni_lnd->lnd_notify != NULL) if (ni->ni_lnd->lnd_notify != NULL)
(ni->ni_lnd->lnd_notify)(ni, gateway, 1); ni->ni_lnd->lnd_notify(ni, gateway, 1);
lnet_net_lock(LNET_LOCK_EX); lnet_net_lock(LNET_LOCK_EX);
} }
......
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