Skip to content

Commit 9804db1

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: dc395x: Stop using the SCSI pointer
Remove the code that sets SCSI pointer members since there is no code in this driver that reads these members. Link: https://lore.kernel.org/r/20220218195117.25689-19-bvanassche@acm.org Cc: Oliver Neukum <oneukum@suse.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 30564db commit 9804db1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/scsi/dc395x.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,9 +3314,6 @@ static void srb_done(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb,
33143314

33153315
/* Here is the info for Doug Gilbert's sg3 ... */
33163316
scsi_set_resid(cmd, srb->total_xfer_length);
3317-
/* This may be interpreted by sb. or not ... */
3318-
cmd->SCp.this_residual = srb->total_xfer_length;
3319-
cmd->SCp.buffers_residual = 0;
33203317
if (debug_enabled(DBG_KG)) {
33213318
if (srb->total_xfer_length)
33223319
dprintkdbg(DBG_KG, "srb_done: (0x%p) <%02i-%i> "

0 commit comments

Comments
 (0)