Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp301523imm; Fri, 3 Aug 2018 03:49:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd0SzK7bDFgArXgy8bW6XMgYB3RCbRq8ZKjIFBJvIYTsMKYWK754LfF1cSqsyeuaUgHqz4s X-Received: by 2002:a62:a05:: with SMTP id s5-v6mr3837073pfi.147.1533293341158; Fri, 03 Aug 2018 03:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533293341; cv=none; d=google.com; s=arc-20160816; b=0AU7DyfQdWwoAIhaHBcdY689PBF67rHZqv3MTZzjXvE2rLUwDEC3rt4MNs+TGQ6imR Crg0C1oGs99IbePMr0ZI9BuhsSp4ib93bbXyp6Xj+M+x7k1Ria7/yjzuZJ90z601FSK2 0mjcfkT5cHWHC/CiW1pQlKLhftf4XmnAzDCkWPRQ6vZKWxXT/5MrMGxAHzyujJf48Uno 1Mk119KtUGLC2b8m6lEpiIGNvwPlodRfMZKClarTJN3yY+NfB+XPzUTWW2POAxKbFT4f 6Cm4bVPVQEPnVpZW6WxfPOllQcY6KHwQkGlnCzviVQ4mfhwkV8BDq/0B/rlGYvFJgnfy w9lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=xg5BDVJiTW7YpsABFWPT85HaK5OHs0yAyxWLugCcO1g=; b=MY3csW4dpFIq+aiOPF2oY3VO6RB5ixlMuezBgDOeapKgm9GiF7ep95XrJdeh386lYy +Hdc97DhkCjM5stl4NNPeAeDl2Z4BBAcTA5Ng9MHc75NCc9M5cjce/NB/dwjwV0TdFc3 JXaRmrrqoUM9KCJHnvs5lZ/lFjd6ssqgt7jGmvzEqwF894EHDiLK5WKQIXahNi6Pvr0A 728mtvr3i+BUXlNEt2ROHPvkZRvP3jlJIV12FcLMh79Qk0mDZpUvlMZ+SpyGKXApnXOv lPSjSPIN1sIzznJLLMTvS9wkKrDIzPjl5Qrt3gWAjuDZGy0XOfJCOrI2w2DoWhc2DCfW XTsg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16-v6si3399220ply.462.2018.08.03.03.48.46; Fri, 03 Aug 2018 03:49:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732507AbeHCMno (ORCPT + 99 others); Fri, 3 Aug 2018 08:43:44 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:53413 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732251AbeHCMno (ORCPT ); Fri, 3 Aug 2018 08:43:44 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1flXce-0004Hj-Q7; Fri, 03 Aug 2018 10:47:52 +0000 From: Colin King To: =?UTF-8?q?Kai=20M=C3=A4kisara?= , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] st: remove redundant pointer STbuffer Date: Fri, 3 Aug 2018 11:47:52 +0100 Message-Id: <20180803104752.17081-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Pointer STbuffer is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'STbuffer' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- drivers/scsi/st.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index 50c66ccc4b41..307df2fa39a3 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c @@ -828,11 +828,8 @@ static int st_flush_write_buffer(struct scsi_tape * STp) static int flush_buffer(struct scsi_tape *STp, int seek_next) { int backspace, result; - struct st_buffer *STbuffer; struct st_partstat *STps; - STbuffer = STp->buffer; - /* * If there was a bus reset, block further access * to this device. -- 2.17.1