Skip to content

Commit

Permalink
cxgb4: Remove some dead code
Browse files Browse the repository at this point in the history
This 'BUG_ON(!ep)' can never trigger because we have:
   if (!ep)
      return 0;
just a few lines above. So it can be removed safely.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Christophe Jaillet authored and Doug Ledford committed Aug 17, 2017
1 parent 520eccd commit 836daee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/infiniband/hw/cxgb4/cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2871,7 +2871,6 @@ static int close_con_rpl(struct c4iw_dev *dev, struct sk_buff *skb)
return 0;

pr_debug("%s ep %p tid %u\n", __func__, ep, ep->hwtid);
BUG_ON(!ep);

/* The cm_id may be null if we failed to connect */
mutex_lock(&ep->com.mutex);
Expand Down

0 comments on commit 836daee

Please sign in to comment.