scsi: st: remove unneeded variable 'result' in st_release()
[sfrench/cifs-2.6.git] / drivers / scsi / st.c
index c5f9b348b43825ba9468caa011527fa2b753d4de..4bf4ab3b70f480a64b413a07aad726f5d5b5e096 100644 (file)
@@ -1457,7 +1457,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)
@@ -1470,9 +1469,9 @@ 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 */
 static ssize_t rw_checks(struct scsi_tape *STp, struct file *filp, size_t count)
 {