Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1425514lqp; Mon, 15 Apr 2024 06:23:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWq2uJQZmCLpUjxYEeSZaFK9nacHUkBYmU8ezJueuLvT+ZQ5K0IfFkjRrgvI5lUmSsFNE0hlGIALiJrELWuDHXM6piUaKF/8Gx+YkKaeA== X-Google-Smtp-Source: AGHT+IGWjACfzvEhOKCsGwFP0Xvg2jwyzlBZCyJ0KDHGxNSRqOUaaXpav82D/Vzao9k1H/lcUmD3 X-Received: by 2002:a05:6358:f918:b0:17e:69fd:e8cc with SMTP id kv24-20020a056358f91800b0017e69fde8ccmr7516708rwb.21.1713187438392; Mon, 15 Apr 2024 06:23:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713187438; cv=pass; d=google.com; s=arc-20160816; b=hQH/EFJDQYU+OlZr+SIQih0Tn2FgdobvgyXY0LZ5weRYc2VurJaKVZ6VRM7haAjU7U ZjLfBTSf6F2NuTV6+JTb4qZbbkF/KfMq4vmD9V+ugpltC5Yn4o4ldo5KKkpe53DpAwz4 gGnJjXsDDLjQjsyv6Q7vhC+yqHJHCrerXH2jEDpnhjAkyumjt5WPGyImXzx2H7IIu5/f J6vBMNAkjreaPjZ1rOWjViogZUJu2SoNj4q4uyEdcg9cte7TDdQqV/44PAdqyN9V5vjg 25fWMZkSxLuaBuSXn8lmIhmZO50jHJX3vz90cu1herrlWwV7iS2vtm1LA/05ZxHMa7/5 4bHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FwcFeUOF7K3SRYudZACVSoRmoh8QVCcU+II8v+J4TrI=; fh=HQEw6Z9CqvAKqIN30l1NNZuoD3Q3FcBjTHMVGidvGJ8=; b=R+3Vd05+aS1qymd8vkdghW2qiE6hwfmoTCqnNVCsRo04R+vBn95EjT0N1IJb61vhWz upjlMjNbSgbAZdNk2GKPtl/lHuAWa79Hc4C6qDPPZZNBj/2JSC9Cg/rQb65VGDxTlnAN Xm1vsRQA2CbHiwQVfNFBdzPOF5v3/szNQvggxjD5ZlB4uxjGrilBCY64WWK3vDsPwCiU 7EBgBxR4ujCEQPpc9wl0/QjUVQV2JrX8wo2+I2c58OYhvzPocO9hUE1S2D8k5uVdhEOX LHuIe0tOAEDYdp7+QkekdCh/hdirH82lZ46tW8gs0VwF8cl922wOI/Pg+iEgC9OLWEtm garQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B4TCCscZ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-144979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w4-20020a634904000000b005dc422577a9si7712561pga.209.2024.04.15.06.23.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 06:23:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B4TCCscZ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-144979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 27A29B2250D for ; Mon, 15 Apr 2024 11:21:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA70A5F575; Mon, 15 Apr 2024 11:21:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="B4TCCscZ" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E92AB1E896; Mon, 15 Apr 2024 11:21:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713180109; cv=none; b=dFkBj9mNUfimJnJ0RZFdBmm85NJwR3rR/U81UzJlJ6ir9Ii0sGQ4TrJbRUfcuYK6hFshv+mngeR1W9MPFwvI0b4eX8c+KhF2CXCjy1TONT7w3HDDlVCiggiTdjySBlHyACU2r3Nn9M3hV2YA+ZBxmBiPNYQNLhpfsIW4aRytAT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713180109; c=relaxed/simple; bh=sWIR7btRXBx7+IBOBxrzrqS7BWtoqCpvVr4Yb0Em0y0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=URTqFuL0052uvDfrZ7f9MclTLX/p5NWHE5HQBG51R7uiy0Xwyijyg1WKTO0NAavWzCVHntRMWGJy3IWd4zhmgdwtrx9eEpvoHQR99lXXT25rn+flcNcyMjcW+Mn8MoSB9nsPrW2e14dZireMg1a+ObhN5++lJDVpXOK+vF05Ec4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=B4TCCscZ; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713180107; x=1744716107; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sWIR7btRXBx7+IBOBxrzrqS7BWtoqCpvVr4Yb0Em0y0=; b=B4TCCscZLyPWqn9iCklvFYaGx7I5EkXSCEFVNwTtYBOEdAWAt4EfXCe7 9BkhS2c8rquDlot8lIqCgkd6qYQ6rh61W81Hz3sZ+MgCHa229cpIc3egG MGeqZibLuJWbQDSaorsC1gvtWxr+T0Ky9kGrRs4yBsG1xhP5FrFLgJh2w plLWqdBpPwa7Sybm8sUQUnhi3IxBlRGfzds60lu5pgLt/ExIQgORWuOIQ RK9EEivyk4H4F6eOS3QtuVopIuP2u5lD4ba9zNcDlht/qVUMDwLcx4EBs wbhibg8U/zze3CuKtlk1UmDzNw2shyL1CiUF9IfcUdTxygLuZC1YmLXe2 w==; X-CSE-ConnectionGUID: vpl/pwySRIOYngpyZ3YozA== X-CSE-MsgGUID: BEoS1rn2Rk6uN2FTjAfCqw== X-IronPort-AV: E=McAfee;i="6600,9927,11044"; a="8784086" X-IronPort-AV: E=Sophos;i="6.07,203,1708416000"; d="scan'208";a="8784086" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 04:21:46 -0700 X-CSE-ConnectionGUID: DK23tnP7QXaFNZtjvzC77Q== X-CSE-MsgGUID: Wl4Cc+QpROe5LKoBdFIsSQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,203,1708416000"; d="scan'208";a="21956767" Received: from unknown (HELO intel.com) ([10.247.119.21]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 04:21:38 -0700 Date: Mon, 15 Apr 2024 13:21:32 +0200 From: Andi Shyti To: Colin Ian King Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Andi Shyti , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] drm/i915: remove redundant assignement to variable err Message-ID: References: <20240415095659.482989-1-colin.i.king@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240415095659.482989-1-colin.i.king@gmail.com> Hi Colin, On Mon, Apr 15, 2024 at 10:56:59AM +0100, Colin Ian King wrote: > The variable err is being assigned a value 0 that is never read, the > break statement escapes a do-while loop and then the code returns > without referencing err. The assignment is redundant and can be > removed. > > Cleans up clang scan build warning: > drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c:1075:5: warning: Value > stored to 'err' is never read [deadcode.DeadStores] > > Signed-off-by: Colin Ian King Reviewed-by: Andi Shyti Thanks, Andi