Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp288106pxb; Fri, 16 Apr 2021 05:51:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5rrmgo4hjOJu2GaqLB1Wcq0AGjPeO/eLZ67M+TjNirBgoa0zSCxgutJGLBINmBPadegSe X-Received: by 2002:aa7:c9cf:: with SMTP id i15mr9944107edt.4.1618577492411; Fri, 16 Apr 2021 05:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618577492; cv=none; d=google.com; s=arc-20160816; b=BYq6rTIuANnhWzr5Fl3KE/DaGGSjt37P1eIVrBk688+GpS6TZG9ZzN+90CMizkcR5Q 0q5zeRX3AlVCYJf1pB3m/zLU5nY7403PiLETN4cLSNWJd+I1fYXRQMKGw3u2nUTfiCGj Y5Cxn8Dh73AHC48uO/vw05vgyhQvOlyP8gnA6XpoU0mm4j+el4TiA8b+3ZRU97QpJpjb 9W6pqcyQOtEQqqGm5KB8OQy/eexbFZRj9zZp8oJ7Xw5OOhlxUZ38NN6C5ts48HOa6bqi HEHdBmMKUabEFW5dY1KnRq9DWq/ABAnrToX4tdxRfH7l17ZjHp2thcZmCob6gx/QblX7 IWPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Jk36eYtLMeyJSNx9XAqpGadjjqtLtgy4AzBa+/tMpFM=; b=AL62oSgpxDqpJ6JEyj1j7sn3hkRrXcEgXv5qI/Ja5LZtWYf01dpGM5wHfQYFCgbgew tgLajtyk4z37xl3jus2bmp7LBLVw9A+OLG5dsf+kVPN2ZtBnLzU1F6gF2LPuKgyElMmg KKLmnycsjBK5pa/eP3nLETqxS2VpSWHR/Z4aEsXMv9xsDUOUGQslS2mS7V0B16/q6qYq cZWBKw9bxvRY0VmnrLinXHTkpCy6NoIHY9j2RxnZJklvCbjf+plrO91KIliwl4cwUQWE 6qiUk0IVBqhyXWvFVKvj4g68WdtFl9uIbWZdh7qpyxDK7O8dr7g2ZA/Cg8sMejMgOxA/ V8pw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si4617257edr.83.2021.04.16.05.51.05; Fri, 16 Apr 2021 05:51:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235678AbhDPM3f (ORCPT + 99 others); Fri, 16 Apr 2021 08:29:35 -0400 Received: from mail-qv1-f46.google.com ([209.85.219.46]:45592 "EHLO mail-qv1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235074AbhDPM3c (ORCPT ); Fri, 16 Apr 2021 08:29:32 -0400 Received: by mail-qv1-f46.google.com with SMTP id bs7so12798320qvb.12; Fri, 16 Apr 2021 05:29:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Jk36eYtLMeyJSNx9XAqpGadjjqtLtgy4AzBa+/tMpFM=; b=Zpe5v4E7EYU6air29l/BM29JKksJFfh9vfHwspuoGq6W00a+jorMUNp+g3IYImlBGO UN+76APSHYkP/ZnHU8HgpC1J1ERCixQIRheqfRivSj0R1u1R8/IGOdZTQ/nc5qYfvKKg Gfg4y7Xq/KSE/CYvrPDjbYP4h2J99MkjBpdjSwbu4gNAPSRvRJVW06LDQbcI58yyEiAt PnMhwOihj3V68SseXC3iQVzCBOnHCMd7u98UKa9ikwWmmJLNoeEYiWRG62tVnOHjJcu/ cZJnDJhqEDB1Fv1exuhvKnsg067dStoHothZ3pEdRH7vS6n0mKy63hKIV2sPEmfzZQ9M aowA== X-Gm-Message-State: AOAM531T1+hZHodiegzNxthdNFiCTCp06YjlnSxx7Bm1agu7+pH2GjOC FmkwT3SFGDqMSw89FuShegx5JmXoTwAF/Q== X-Received: by 2002:a0c:fbac:: with SMTP id m12mr8087022qvp.52.1618576146247; Fri, 16 Apr 2021 05:29:06 -0700 (PDT) Received: from [10.68.32.192] (broadband-188-32-236-56.ip.moscow.rt.ru. [188.32.236.56]) by smtp.gmail.com with ESMTPSA id b15sm3986102qtg.82.2021.04.16.05.29.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Apr 2021 05:29:05 -0700 (PDT) Subject: Re: [PATCH] floppy: remove redundant assignment to variable st To: Jens Axboe Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Colin King , Willy Tarreau , linux-block , Linux Kernel Mailing List References: <20210415130020.1959951-1-colin.king@canonical.com> From: Denis Efremov Message-ID: Date: Fri, 16 Apr 2021 15:29:01 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210415130020.1959951-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jens, could you please take this one? I thought to send it to you with other cleanup patches in a merge request, but you already applied rest of the patches. If you prefer to take it as merge request, it's ok I'll send it based on your branch for-5.13/drivers. On 4/15/21 4:00 PM, Colin King wrote: > 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 Reviewed-by: Denis Efremov Thanks, Denis > --- > 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); >