Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3594264pxb; Tue, 7 Sep 2021 03:21:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGlxwh/E2PBqQrbrrtnX93/C2j2+AIXLuAt3k7cuGD8vPWJnXpIJr4ML8zb/aG1WAxRy7T X-Received: by 2002:aa7:dd57:: with SMTP id o23mr17767690edw.385.1631010098606; Tue, 07 Sep 2021 03:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631010098; cv=none; d=google.com; s=arc-20160816; b=kQiTLGIz3GcT01P0vEbQvVIb/DSjQfNRJ+tkXSlCOJ/r7Jt9pHj63EpQVSfghlqeZs SWwXdp8POWfC3juYuh1KAa4cNe5VTlFsZsh5fh+1XyDlFNO3gaLBl12+KPwBMgO+Z/3G EE4ASV/TyNmvThn8O0HWX0RgYU9TAw593LJbet4H9jfE8BmCbxR2TyjeKk5bvpY1J3As ys1pE6a1KMTBu8CWNmwC32hEVaeaeB4TPyQdcbmHavkRQ822n2u1xGfHHdGxomFRbexD 8hehUk8VaWf9PmkYfXqICu/5aPQ5i4uAsTtExhwDnbnHHJImZfGK204DgC5Z++nkPpMC PgHA== 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:dkim-signature; bh=AOzGaLqMVON6gOAw8oKfQg6yGECJe/N3Saup0Kinv8s=; b=TxhBMf/q2WrkINBHBeBHOJsJflv1s8H0RXf4ZFmYBILCfz+WIXHnBShCRxpx2xwkx2 oyFAfDK3tV4HO8QF37Gq6RYbfh/6+GXAeHPhjDl4FxBvYuNdCtoBy+SOQd2OTqWbBGVl UHBTyAnvuzLCD0Bpde5m+Q3Zp9kESyElIPpa4zlBkr/6aotyAbJOnCsxtv+6KKg1ZLQL x4vKmy7JRO44wyJQutPjPGeYeHt6j54Ksp3bqe5+2n1InqXvGTe2p3UTOwj67zQ2RNbr vF50ZBlkYcUoGmYA+SDus6KOlfIwOWIq66083ajCnm0eg4AvBR8Ds6iZKUzzztOaY5Oc P3dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=m8ENZ8Kb; 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=pass (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 k10si10719106ejk.439.2021.09.07.03.21.14; Tue, 07 Sep 2021 03:21:38 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=m8ENZ8Kb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343531AbhIGKTi (ORCPT + 99 others); Tue, 7 Sep 2021 06:19:38 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:49194 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245372AbhIGKTi (ORCPT ); Tue, 7 Sep 2021 06:19:38 -0400 Received: from localhost (1.general.cking.uk.vpn [10.172.193.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id DDD163F04C; Tue, 7 Sep 2021 10:18:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1631009910; bh=AOzGaLqMVON6gOAw8oKfQg6yGECJe/N3Saup0Kinv8s=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=m8ENZ8KbDNC1PrFPdM6wBfFZrRs1uI67+u1TFsT33+wOVxtgoxu1xJscqU0JU+QvR pJ1nms5hdWvIo0DkqNb7tiv/bRT1huHkj9MA4XlOQeCjTurxMNuBonjLoXvgxxqJKP hZgFKruezWpkGSbUifkbSKnJXFbJl7wpyl1d4ErNWujxMFSbOb92CJxapfQ5+FuBUP UQsXk6Za/1j020T+JEI3Ok7k2W90JkmyDLCDC2g07Y5BcHTMzwk27TI9HB2/vscWYj L6WJaYxx0hMsl9HsTj3+OhXiAYqc5vlYnjSXFMRpLw/6+KZtGLJhHZNLUBQsIOJXDJ aUUAueO3E9Tuw== From: Colin King To: Jens Axboe , linux-ide@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pata_legacy: Remove redundant initialization of variable timing Date: Tue, 7 Sep 2021 11:18:30 +0100 Message-Id: <20210907101830.13736-1-colin.king@canonical.com> X-Mailer: git-send-email 2.32.0 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 timing is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/ata/pata_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c index c3e6592712c4..bb5694ecdfba 100644 --- a/drivers/ata/pata_legacy.c +++ b/drivers/ata/pata_legacy.c @@ -815,7 +815,7 @@ static void winbond_set_piomode(struct ata_port *ap, struct ata_device *adev) struct legacy_data *ld_winbond = ap->host->private_data; int active, recovery; u8 reg; - int timing = 0x88 + (ap->port_no * 4) + (adev->devno * 2); + int timing; reg = winbond_readcfg(ld_winbond->timing, 0x81); -- 2.32.0