[2.6 patch] drivers/scsi/osst.c: remove unused code

Adrian Bunk
2005-03-22T22:01:02Z

Thanks to both the Coverity checker and GNU gcc, it was found that this
variable is completely unused.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.12-rc1-mm1-full/drivers/scsi/osst.c.old 2005-03-22 21:04:36.000000000 +0100
+++ linux-2.6.12-rc1-mm1-full/drivers/scsi/osst.c 2005-03-22 22:09:32.000000000 +0100
@@ -4770,9 +4770,6 @@ static int os_scsi_tape_close(struct ino
{
int result = 0;
struct osst_tape * STp = filp->private_data;
- struct scsi_request * SRpnt = NULL;
-
- if (SRpnt) scsi_release_request(SRpnt);

if (STp->door_locked == ST_LOCKED_AUTO)
do_door_lock(STp, 0);