diff mbox series

[4/4] sg: sg_common_write: remove debug remnant

Message ID 20210311181423.137646-5-dgilbert@interlog.com
State New
Headers show
Series [1/4] sg: sg_rq_map_kern: fix uninitialized | expand

Commit Message

Douglas Gilbert March 11, 2021, 6:14 p.m. UTC
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@interlog.com>
---
 drivers/scsi/sg.c | 5 -----
 1 file changed, 5 deletions(-)
diff mbox series

Patch

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;