Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3979318ybg; Mon, 28 Oct 2019 23:51:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxguqFAvr9AMqt5broiyxPdTbo8N5g45Su9yhds0xTxDfO6QW50jRFWbPdfLKlWs0YvkToE X-Received: by 2002:a17:906:4d16:: with SMTP id r22mr1700404eju.244.1572331866941; Mon, 28 Oct 2019 23:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572331866; cv=none; d=google.com; s=arc-20160816; b=Txb4vNN4Vm/Pf7RsXXqDTdBE6F2uKPFK9RaL4GxFqkS4sjS4wrDuoMn1immK0qc0cN sUjp5OdTba+RFUwtVz/tqPr27lwah0IliVPQX0+G3jk96zsCK2ZciNv5N2jYrJRJj15p ZhSwmjvMgePMv59+hj8apYY0wfIsJDUf7D0WUzhyjXm/JjTYmwy/NT3zBEz0qkVudaFK Uj/NbFy7n9wSvvRSP+VC7j+raYaaAp4tFsgJjCH6KUk1UkSTs6DhQnpM6K+WD1OCeicZ xEfMFaI45XJ1Eu567FvssP+5KwFQ/p9UEbi+eVse64Oiy0zJgbxKsFNYK0aVDa36jYmv 4yRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=fnnx0BsXF5mY3wVLlFvOOcZalsRDnZJxgNUMzEL+TXc=; b=X6xFTs5ATd6B90jY7QJGZjkql9aRoelyNW/Z67tHXA9M87Qs1T0dBDjMdJCmiRmsv2 3KWnh+OyhIGULjjNe/cv4pEMpUp0G9ueAJstN2ZdUdYNp4llQBDVmZAI3Cj99ziJyk/c 87szfF3Ty0odHTPnS/TVFqr+DaTM5/+6MpD5TqWMRzCQnji1sAgA7stt3KCVNtH9h5ML 2Eabd25urCrFRa+SGzndog7/6USBypS+KG++su+saD9TiEQy62z4kmdRMblsZu5zuXXE DZLYaR07KrPGetbzhvFsQWBXVgfz1wz3S9h5Ce70WvXU5tlGS9zXlUYh1S7+pru29eKg eXow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Yk20A5ke; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si9748590edl.273.2019.10.28.23.50.42; Mon, 28 Oct 2019 23:51:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Yk20A5ke; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388579AbfJ1U7B (ORCPT + 99 others); Mon, 28 Oct 2019 16:59:01 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:43585 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728022AbfJ1U7B (ORCPT ); Mon, 28 Oct 2019 16:59:01 -0400 Received: by mail-pg1-f195.google.com with SMTP id l24so7761747pgh.10; Mon, 28 Oct 2019 13:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=fnnx0BsXF5mY3wVLlFvOOcZalsRDnZJxgNUMzEL+TXc=; b=Yk20A5keXvFNXwedn9yOfCW5dvi15M5/ay1DI5zxMIrb962NhbOz6qURd6Wnu+VbqY FkH7H5PGlTlimmRX/alDPf75RDf8YG71e5QSFUv/9vF4mVT2cXP3zmDI/00VaWbPBvGt zFqL+xlI1h0IJTdwk+mOipFmHiv7op94UzRu1621/qiKn+ea2LlQVOhwk93iPBA2H9xF kY4LKBvw96rRAfFDHcAtOByfKMuSSZFJ3xbwTgJ6T3u5dS6w3LwMonfaAZhPsgjOhpwW soA5z22UhJirzCYLlE3PcQplvNaj65pArXR8NRkKMNAyCU7FMl+vZyiW4e/F93qNC/rP qw9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=fnnx0BsXF5mY3wVLlFvOOcZalsRDnZJxgNUMzEL+TXc=; b=IYrylKMgHnZBZaiTCw2SWq5rFgG8Lvj+BSh/eVkq5OmJ0cQtjwfv1n+uoN9km/3O7B GvKn373ChfCMQKiQS9RTf7DOxQC331p9GoPWUAPxxqEVRxSyyJOglbRltszxO8yYqxJ+ fBntvJPlbm5A5MghieRNUwwvvFUlQZvmKvw4taPwxtm8wZQIVOHJRkWKceaF0hzcGxTI 2F7h8eDp/Ut213tX26hbj3pj5wQkbJoNkUc+BMfmS7STgCr1mITs+zBNsJtxB7aWYcoX a3Crnu9M4MuOhMBJmorLQw/wRQNDW/KpuW8xB34IH2J0EiLyh9C52b33DMBIGjbOdbFY dx8A== X-Gm-Message-State: APjAAAUYfrDmAlUcjVpkj6vhYQGPd4JRk1+os6ISDPsorgGXDS977pTG 3IZinikWXH9bG2GM4tZ+xQ4= X-Received: by 2002:a62:e508:: with SMTP id n8mr23443365pff.111.1572296340334; Mon, 28 Oct 2019 13:59:00 -0700 (PDT) Received: from saurav ([27.62.167.137]) by smtp.gmail.com with ESMTPSA id c8sm383708pjo.1.2019.10.28.13.58.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 13:58:59 -0700 (PDT) Date: Tue, 29 Oct 2019 02:28:53 +0530 From: Saurav Girepunje To: Kai.Makisara@kolumbus.fi, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] scsi: st.c: Remove unneeded variable. Message-ID: <20191028205853.GA29719@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org variable "result" is not modified in function st_release(). So remove it. Signed-off-by: Saurav Girepunje --- 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; } /* The checks common to both reading and writing */ -- 2.20.1