Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp757024pxb; Thu, 15 Apr 2021 06:02:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1JGfNJAV6sbpXeAQKwhF1EK0VGlNTDvyQ2vBQLuWzCJVfrTeav8c5fT7lZu4dw88xzr68 X-Received: by 2002:a1c:cc0e:: with SMTP id h14mr3169098wmb.4.1618491726690; Thu, 15 Apr 2021 06:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618491726; cv=none; d=google.com; s=arc-20160816; b=Ow+hMZ9w6jtX2k9CJf99i5qZwqYoxRYZsP0eY2AIghsk9slHvy/eDMiRBrzbe+g+Le 5OB5aPqASQngHfOBDl2iOHuFmLmyT5K1cg75vQxKl//kg5e9FZP7C09Cyd15L3dputjU hznnndUzrEPRaMQ3p39WwgLVOjjApKWnk+JcOJJLTZAKmJ041HM5GmjYj1zmL69seLlK mMlKZO3YXEWCMEuub/WDuhbAnDVY/kTfiR6vKcLAPbQcjXoMoF/sYjOdXNwtwZu4Xgia CSmbpfcs7siZmfVyv3sGIlZ2bMvLxON6229Ov6NKWLFS+sjpvuC2A78cNrjV5utq5YdM fUnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=YGWiITKwPRmpg63SJ1rXIPNwbNrmznWaV1vy/36pQmE=; b=D6uA2HmDzW7hnAODtUl21uYLTIa1hbkZcL+0dz0rYN5+0+vV7rR5H7mKdPePAZgJZ9 7dos/8WiInsXj4oJLxLJ3pT4ovpYqk/KmrQMLIy4p4a08+wo56nE6ex8VN6X1/+5QAyY 3lKrB4dRzSuL9mfWzPvjQRSMqqdv0uCumzEctQshJGLoPc4ChejhY1bRYBk4PHfPsrCE ZyLpWi4mMrtYw3HHu1h1bBGJAjt26XVayKnv5OSlNMsCML88Cw0DQpQsbh5c/if77rfR 0xp6KDspiiozIUJS48EL6JA1h2QPOykf58elMH1PbyWsmzCmgHMz5vPLrBBH9vXHG0jo J+fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id o10si2146012edh.13.2021.04.15.06.01.41; Thu, 15 Apr 2021 06:02:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232650AbhDONBD (ORCPT + 99 others); Thu, 15 Apr 2021 09:01:03 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48522 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbhDONBC (ORCPT ); Thu, 15 Apr 2021 09:01:02 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lX1bY-0008PN-9f; Thu, 15 Apr 2021 13:00:20 +0000 From: Colin King To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H . Peter Anvin" , Denis Efremov , Willy Tarreau Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] floppy: remove redundant assignment to variable st Date: Thu, 15 Apr 2021 14:00:20 +0100 Message-Id: <20210415130020.1959951-1-colin.king@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The variable st is being assigned a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- arch/x86/include/asm/floppy.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/asm/floppy.h b/arch/x86/include/asm/floppy.h index d43717b423cb..6ec3fc969ad5 100644 --- a/arch/x86/include/asm/floppy.h +++ b/arch/x86/include/asm/floppy.h @@ -74,7 +74,6 @@ static irqreturn_t floppy_hardint(int irq, void *dev_id) int lcount; char *lptr; - st = 1; for (lcount = virtual_dma_count, lptr = virtual_dma_addr; lcount; lcount--, lptr++) { st = inb(virtual_dma_port + FD_STATUS); -- 2.30.2