* [PATCH] scsi: st.c: Remove unneeded variable.
@ 2019-10-28 20:58 Saurav Girepunje
0 siblings, 0 replies; only message in thread
From: Saurav Girepunje @ 2019-10-28 20:58 UTC (permalink / raw)
To: Kai.Makisara, jejb, martin.petersen, linux-scsi, linux-kernel
Cc: saurav.girepunje
variable "result" is not modified in function st_release().
So remove it.
Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
---
drivers/scsi/st.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index e3266a64a477..bddabecfbe5c 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -1455,7 +1455,6 @@ static int st_flush(struct file *filp, fl_owner_t id)
accessing this tape. */
static int st_release(struct inode *inode, struct file *filp)
{
- int result = 0;
struct scsi_tape *STp = filp->private_data;
if (STp->door_locked == ST_LOCKED_AUTO)
@@ -1468,7 +1467,7 @@ static int st_release(struct inode *inode, struct file *filp)
scsi_autopm_put_device(STp->device);
scsi_tape_put(STp);
- return result;
+ return 0;
}
\f
/* The checks common to both reading and writing */
--
2.20.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-28 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-28 20:58 [PATCH] scsi: st.c: Remove unneeded variable Saurav Girepunje
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox