Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp391183ybv; Sat, 22 Feb 2020 05:48:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwwTpbE3Ml4g43eVdutDi+bjazo8UfRl+P01hyug2JAIeZKIH/NQlpcXtZeLtlL7tqCOUvI X-Received: by 2002:a05:6830:4cd:: with SMTP id s13mr32201317otd.181.1582379309720; Sat, 22 Feb 2020 05:48:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582379309; cv=none; d=google.com; s=arc-20160816; b=xCqeFXtwFl7FJ5ocmaeJmkZ4FHaqpse2a1cwZuhXc0QeTFWSFKXRk7nKmUTcUs5Kxa HaZSmHTNedMgHGD+g+Zwoetk0GtuQiN3IkDaNYk/3/VFCFZA9rK8XN2nayRYNOieZdaD nVtDJ5oIGj/tqRQH+/+4uo6uyltvNuBzIwuMdGYhSOXl9SrIU/g1ii0QZyTJtqeGuvQh 6e8+YXbDkt1EzddrId45TyLSEw2Z9umgb54u4BgjBV3Fo/+66ToyZgmkpnipY7IobRx3 4GoUtch8g+tnO4yLh68q/+/N1wSpcIBdpwnoyEmm0FwgYr1vMTL6H5uxICsKfEzdhqdk V1Sg== 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; bh=AGxu5n0+k1AY5hgC3QACaT93Pml3KVpSCLhHBvhbC2g=; b=aiRhCSyVbZ647sU2WgnDYGJ2UYtOcg9M6zOjsCpLUqW5+aEhjocOTX+/ct+5fybhHN ZLca5eDIVX8tnN+FuYtlPyaln+VxRxcc8LNCa/UkSjXR6Jcc+i2gvzBE9rRJgYSEEys1 onkmYLo3F7WmgIXn8eEZU6sK+IMHovSqu0u0D47mVJWdUEfsjY/djKkpzCz7YoxnE6g1 i0LNcfIKWPMDzdA3kEIIuKmNrJzFh7lj6od3qjux42GP4xF9MlXItWUogyprN8YT1NUe IH30okGp9a+8n7JCaqF1VSqOKz+xu1PNAjXcerT7Vv9yhBoHJo5AvUrlO102zlVpLEHn GyOQ== 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 r26si3481568otc.163.2020.02.22.05.48.14; Sat, 22 Feb 2020 05:48:29 -0800 (PST) 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 S1727357AbgBVNsF (ORCPT + 99 others); Sat, 22 Feb 2020 08:48:05 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:54157 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbgBVNsF (ORCPT ); Sat, 22 Feb 2020 08:48:05 -0500 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 1j5V8N-0000sM-Kt; Sat, 22 Feb 2020 13:47:55 +0000 From: Colin King To: Jani Nikula , Rodrigo Vivi , David Airlie , Daniel Vetter , Chris Wilson , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/i915/gt: remove redundant assignment to variable dw Date: Sat, 22 Feb 2020 13:47:55 +0000 Message-Id: <20200222134755.134209-1-colin.king@canonical.com> X-Mailer: git-send-email 2.25.0 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 Variable dw is being initialized with a value that is never read, it is assigned a new value later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/intel_engine_cs.c b/drivers/gpu/drm/i915/gt/intel_engine_cs.c index e46e55354e95..119c9cb24fd4 100644 --- a/drivers/gpu/drm/i915/gt/intel_engine_cs.c +++ b/drivers/gpu/drm/i915/gt/intel_engine_cs.c @@ -639,7 +639,7 @@ static int measure_breadcrumb_dw(struct intel_context *ce) { struct intel_engine_cs *engine = ce->engine; struct measure_breadcrumb *frame; - int dw = -ENOMEM; + int dw; GEM_BUG_ON(!engine->gt->scratch); -- 2.25.0