Skip to content

Commit

Permalink
scsi: qedi: Remove WARN_ON from clear task context.
Browse files Browse the repository at this point in the history
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Manish Rangankar authored and Martin K. Petersen committed Jun 20, 2017
1 parent 6ebf815 commit 02d94e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/scsi/qedi/qedi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1499,11 +1499,9 @@ int qedi_get_task_idx(struct qedi_ctx *qedi)

void qedi_clear_task_idx(struct qedi_ctx *qedi, int idx)
{
if (!test_and_clear_bit(idx, qedi->task_idx_map)) {
if (!test_and_clear_bit(idx, qedi->task_idx_map))
QEDI_ERR(&qedi->dbg_ctx,
"FW task context, already cleared, tid=0x%x\n", idx);
WARN_ON(1);
}
}

void qedi_update_itt_map(struct qedi_ctx *qedi, u32 tid, u32 proto_itt,
Expand Down

0 comments on commit 02d94e0

Please sign in to comment.