Fix unused variable warning in ocs_cam.c
With clang 15, the following -Werror warning is produced: sys/dev/ocs_fc/ocs_cam.c:2556:11: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable] uint32_t count; ^ The 'count' variable seems to be a left-over from some debugging code that no longer exists, and can be removed without any functional change. MFC after: 3 days
This commit is contained in:
parent
06016a40d6
commit
8d9e292846
@ -2553,27 +2553,22 @@ static int32_t
|
||||
ocs_tgt_resource_abort(struct ocs_softc *ocs, ocs_tgt_resource_t *trsrc)
|
||||
{
|
||||
union ccb *ccb = NULL;
|
||||
uint32_t count;
|
||||
|
||||
count = 0;
|
||||
do {
|
||||
ccb = (union ccb *)STAILQ_FIRST(&trsrc->atio);
|
||||
if (ccb) {
|
||||
STAILQ_REMOVE_HEAD(&trsrc->atio, sim_links.stqe);
|
||||
ccb->ccb_h.status = CAM_REQ_ABORTED;
|
||||
xpt_done(ccb);
|
||||
count++;
|
||||
}
|
||||
} while (ccb);
|
||||
|
||||
count = 0;
|
||||
do {
|
||||
ccb = (union ccb *)STAILQ_FIRST(&trsrc->inot);
|
||||
if (ccb) {
|
||||
STAILQ_REMOVE_HEAD(&trsrc->inot, sim_links.stqe);
|
||||
ccb->ccb_h.status = CAM_REQ_ABORTED;
|
||||
xpt_done(ccb);
|
||||
count++;
|
||||
}
|
||||
} while (ccb);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user