The removed check was added as part of scattergun debugging to find a problem that was fixed elsewhere. The associated SG_LOG message has never been seen in testing. Signed-off-by: Douglas Gilbert <dgilbert@xxxxxxxxxxxx> --- drivers/scsi/sg.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index b6e06e039d5b..9593f8eaf56c 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -1120,11 +1120,6 @@ sg_common_write(struct sg_comm_wr_t *cwrp) res = -EIDRM; /* this failure unexpected but observed */ goto err_out; } - if (xa_get_mark(&fp->srp_arr, srp->rq_idx, SG_XA_RQ_FREE)) { - SG_LOG(1, fp, "%s: ahhh, request erased!!!\n", __func__); - res = -ENODEV; - goto err_out; - } srp->rq->timeout = cwrp->timeout; sg_execute_cmd(fp, srp); return srp; -- 2.25.1