linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: staging/rdma/hfi1: use mod_timer when appropriate
@ 2016-03-23 20:48 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2016-03-23 20:48 UTC (permalink / raw)
  To: mike.marciniszyn-ral2JQCrhuEAvxtiuMwx3w; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hello Mike Marciniszyn,

The patch 633d27399514: "staging/rdma/hfi1: use mod_timer when
appropriate" from Feb 4, 2016, leads to the following static checker
warning:

	drivers/staging/rdma/hfi1/rc.c:1500 do_rc_ack()
	info: ignoring unreachable code.

drivers/staging/rdma/hfi1/rc.c
  1487                  default:
  1488                          /* Ignore other reserved NAK error codes */
  1489                          goto reserved;
  1490                  }
  1491                  qp->s_retry = qp->s_retry_cnt;
  1492                  qp->s_rnr_retry = qp->s_rnr_retry_cnt;
  1493                  goto bail_stop;
  1494  
  1495          default:                /* 2: reserved */
  1496  reserved:
  1497                  /* Ignore reserved NAK codes. */
  1498                  goto bail_stop;
  1499          }
  1500          return ret;
                ^^^^^^^^^^
Not reachable.

  1501  bail_stop:
  1502          hfi1_stop_rc_timers(qp);
  1503          return ret;
  1504  }


regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-23 20:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 20:48 staging/rdma/hfi1: use mod_timer when appropriate Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).