Commit 5b891a93 authored by Jack Stone's avatar Jack Stone Committed by Roland Dreier

infiniband: Remove void casts

Remove uneeded casts of void *.
Signed-off-by: default avatarJack Stone <jwjstone@fastmail.fm>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 210af919
...@@ -133,7 +133,7 @@ static inline int c2_poll_one(struct c2_dev *c2dev, ...@@ -133,7 +133,7 @@ static inline int c2_poll_one(struct c2_dev *c2dev,
struct c2_qp *qp; struct c2_qp *qp;
int is_recv = 0; int is_recv = 0;
ce = (struct c2wr_ce *) c2_mq_consume(&cq->mq); ce = c2_mq_consume(&cq->mq);
if (!ce) { if (!ce) {
return -EAGAIN; return -EAGAIN;
} }
...@@ -146,7 +146,7 @@ static inline int c2_poll_one(struct c2_dev *c2dev, ...@@ -146,7 +146,7 @@ static inline int c2_poll_one(struct c2_dev *c2dev,
while ((qp = while ((qp =
(struct c2_qp *) (unsigned long) ce->qp_user_context) == NULL) { (struct c2_qp *) (unsigned long) ce->qp_user_context) == NULL) {
c2_mq_free(&cq->mq); c2_mq_free(&cq->mq);
ce = (struct c2wr_ce *) c2_mq_consume(&cq->mq); ce = c2_mq_consume(&cq->mq);
if (!ce) if (!ce)
return -EAGAIN; return -EAGAIN;
} }
......
...@@ -479,13 +479,13 @@ void ehca_tasklet_neq(unsigned long data) ...@@ -479,13 +479,13 @@ void ehca_tasklet_neq(unsigned long data)
struct ehca_eqe *eqe; struct ehca_eqe *eqe;
u64 ret; u64 ret;
eqe = (struct ehca_eqe *)ehca_poll_eq(shca, &shca->neq); eqe = ehca_poll_eq(shca, &shca->neq);
while (eqe) { while (eqe) {
if (!EHCA_BMASK_GET(NEQE_COMPLETION_EVENT, eqe->entry)) if (!EHCA_BMASK_GET(NEQE_COMPLETION_EVENT, eqe->entry))
parse_ec(shca, eqe->entry); parse_ec(shca, eqe->entry);
eqe = (struct ehca_eqe *)ehca_poll_eq(shca, &shca->neq); eqe = ehca_poll_eq(shca, &shca->neq);
} }
ret = hipz_h_reset_event(shca->ipz_hca_handle, ret = hipz_h_reset_event(shca->ipz_hca_handle,
...@@ -572,8 +572,7 @@ void ehca_process_eq(struct ehca_shca *shca, int is_irq) ...@@ -572,8 +572,7 @@ void ehca_process_eq(struct ehca_shca *shca, int is_irq)
eqe_cnt = 0; eqe_cnt = 0;
do { do {
u32 token; u32 token;
eqe_cache[eqe_cnt].eqe = eqe_cache[eqe_cnt].eqe = ehca_poll_eq(shca, eq);
(struct ehca_eqe *)ehca_poll_eq(shca, eq);
if (!eqe_cache[eqe_cnt].eqe) if (!eqe_cache[eqe_cnt].eqe)
break; break;
eqe_value = eqe_cache[eqe_cnt].eqe->entry; eqe_value = eqe_cache[eqe_cnt].eqe->entry;
...@@ -637,7 +636,7 @@ void ehca_process_eq(struct ehca_shca *shca, int is_irq) ...@@ -637,7 +636,7 @@ void ehca_process_eq(struct ehca_shca *shca, int is_irq)
goto unlock_irq_spinlock; goto unlock_irq_spinlock;
do { do {
struct ehca_eqe *eqe; struct ehca_eqe *eqe;
eqe = (struct ehca_eqe *)ehca_poll_eq(shca, &shca->eq); eqe = ehca_poll_eq(shca, &shca->eq);
if (!eqe) if (!eqe)
break; break;
process_eqe(shca, eqe); process_eqe(shca, eqe);
......
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