firewire(4): Fix "set but not used" warnings
Sponsored By: EPSRC
This commit is contained in:
parent
08ff54dc5b
commit
3861bafb68
@ -1907,8 +1907,9 @@ fw_rcv(struct fw_rcv_buf *rb)
|
||||
struct fw_pkt *fp, *resfp;
|
||||
struct fw_bind *bind;
|
||||
int tcode;
|
||||
int i, len, oldstate;
|
||||
int oldstate;
|
||||
#if 0
|
||||
int i, len;
|
||||
{
|
||||
uint32_t *qld;
|
||||
int i;
|
||||
@ -2035,9 +2036,11 @@ fw_rcv(struct fw_rcv_buf *rb)
|
||||
fw_xfer_free(rb->xfer);
|
||||
return;
|
||||
}
|
||||
#if 0
|
||||
len = 0;
|
||||
for (i = 0; i < rb->nvec; i++)
|
||||
len += rb->vec[i].iov_len;
|
||||
#endif
|
||||
rb->xfer = STAILQ_FIRST(&bind->xferlist);
|
||||
if (rb->xfer == NULL) {
|
||||
device_printf(rb->fc->bdev, "%s: "
|
||||
|
@ -554,7 +554,9 @@ fwe_as_input(struct fw_xferq *xferq)
|
||||
struct fwe_softc *fwe;
|
||||
struct fw_bulkxfer *sxfer;
|
||||
struct fw_pkt *fp;
|
||||
#if 0
|
||||
u_char *c;
|
||||
#endif
|
||||
|
||||
fwe = (struct fwe_softc *)xferq->sc;
|
||||
ifp = fwe->eth_softc.ifp;
|
||||
@ -583,7 +585,9 @@ fwe_as_input(struct fw_xferq *xferq)
|
||||
}
|
||||
|
||||
m->m_data += HDR_LEN + ETHER_ALIGN;
|
||||
#if 0
|
||||
c = mtod(m, u_char *);
|
||||
#endif
|
||||
m->m_len = m->m_pkthdr.len = fp->mode.stream.len - ETHER_ALIGN;
|
||||
m->m_pkthdr.rcvif = ifp;
|
||||
#if 0
|
||||
|
@ -935,7 +935,6 @@ static void
|
||||
sbp_mgm_callback(struct fw_xfer *xfer)
|
||||
{
|
||||
struct sbp_dev *sdev;
|
||||
int resp;
|
||||
|
||||
sdev = (struct sbp_dev *)xfer->sc;
|
||||
|
||||
@ -943,7 +942,6 @@ SBP_DEBUG(1)
|
||||
device_printf(sdev->target->sbp->fd.dev,
|
||||
"%s:%s\n", __func__, sdev->bustgtlun);
|
||||
END_DEBUG
|
||||
resp = xfer->resp;
|
||||
SBP_LOCK(sdev->target->sbp);
|
||||
sbp_xfer_free(xfer);
|
||||
SBP_UNLOCK(sdev->target->sbp);
|
||||
|
@ -1419,7 +1419,6 @@ sbp_targ_poll(struct cam_sim *sim)
|
||||
static void
|
||||
sbp_targ_cmd_handler(struct fw_xfer *xfer)
|
||||
{
|
||||
struct fw_pkt *fp;
|
||||
uint32_t *orb;
|
||||
struct corb4 *orb4;
|
||||
struct orb_info *orbi;
|
||||
@ -1441,7 +1440,6 @@ sbp_targ_cmd_handler(struct fw_xfer *xfer)
|
||||
fw_xfer_free(xfer);
|
||||
return;
|
||||
}
|
||||
fp = &xfer->recv.hdr;
|
||||
|
||||
atio = orbi->atio;
|
||||
|
||||
@ -1574,7 +1572,6 @@ sbp_targ_mgm_handler(struct fw_xfer *xfer)
|
||||
{
|
||||
struct sbp_targ_lstate *lstate;
|
||||
struct sbp_targ_login *login;
|
||||
struct fw_pkt *fp;
|
||||
uint32_t *orb;
|
||||
struct morb4 *orb4;
|
||||
struct orb_info *orbi;
|
||||
@ -1594,7 +1591,6 @@ sbp_targ_mgm_handler(struct fw_xfer *xfer)
|
||||
fw_xfer_free(xfer);
|
||||
return;
|
||||
}
|
||||
fp = &xfer->recv.hdr;
|
||||
|
||||
orb = orbi->orb;
|
||||
/* swap payload */
|
||||
|
Loading…
Reference in New Issue
Block a user