Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp618091lqi; Thu, 7 Mar 2024 07:02:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW8yAXZOjbNszC8h69+vkzD0Lq9JMA3rUsHjZZZzjgQDlKL+AhExh6R3PyFz2RJ8sLIbvbBtNNne8tk5vAvUZ3vAPIGV8vC5zhQUBEaqw== X-Google-Smtp-Source: AGHT+IED00khzvuAD57uihlijGrG2N1kSAASZ2yqEVamyYbBUnGEMmdljx4IpRSEa7WXOwAoCEpH X-Received: by 2002:a05:6e02:20e1:b0:365:89a4:a7ac with SMTP id q1-20020a056e0220e100b0036589a4a7acmr1170806ilv.11.1709823721324; Thu, 07 Mar 2024 07:02:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709823721; cv=pass; d=google.com; s=arc-20160816; b=yGISkSec7l2SApbVZH4ADsiRxtAyBpUlQbg92yXvm7kMhItltSAQLl8rpwJuF/lL3o MNHXT794JzSMzYwwLSisEbqmRD5E7XIo3Nxq8VpbrL+NU60bJQbN74chRou4BXCe6d1n AbocwkUpCl/DZiaXzs+scoebtHJznH3IqQlj0it1X/iRi181HgBMYg3VgCbEeBHocTYs aQEOtXN3vEMYFpfd9PTuLs2I44wZ5ceWJbYEu2l9D1nTXKlwzznizXS3yIQGE1j2jmPl b6Im8pqfeEutSKEObqT5YKDKWx3bE/ftTeTAipFvGyXj2aqVmz4Ctwq6QjretvDoXcnl gA4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BOmqNU1lRIv+DURE4y+VSSKM4JviZ9Mjbtz+cTDb3pQ=; fh=RRyF6xYUY4SzxPIZzylV5XLjR/eWr/CycRfR5I+Voww=; b=lHWAdW2XTsbTaKAsTL8gLENRyczVqqGpl4G4PSD59SiUuFISyy4p0TVieab3Ij6ORv 4sTeGaY/+aoT5FSGiWzFPDdDTsZvhLA8vwfoXgbA9PD+3q3FXnpgpcfLuWl1bdGeWufF 80T8tQHJ3RywPL01j9VZerDzlrbK2+vsFxHF/KZN/FwibTRScTHfk/1Zk+nkEolnO6aO CAt/qdpFt+xxzuUU8s3ZvTSpyRwbvx5XzZiV/+T1pYjDIKRsO+4vmRByACehGG4iEEzv QW8CNTO8xnIcNT34ccptyYe4CYhqVEKmnjwNrLLGNYe9aTl9IFxeInnL77Q58/VWrAG3 3emg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oVfDVpD2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-95786-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 4-20020a920d04000000b003660537d479si1389472iln.7.2024.03.07.07.02.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 07:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95786-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oVfDVpD2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-95786-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D2E2428534F for ; Thu, 7 Mar 2024 15:02:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2037312EBF6; Thu, 7 Mar 2024 15:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oVfDVpD2" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86BA012DDB2 for ; Thu, 7 Mar 2024 15:01:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709823704; cv=none; b=HqUKMIEI0hRdHTtu/sau6OPxgZMPd0o99n0vxI4VTYQ8/TXoLYC74sO2JvvT7Hlx6Ka26e0YP+sxv9oZJfYb+GSlDeBQk935oom4l0JXjzAq3sMwjpzat5xWDDaQgGm1orAUdopE7Ba2EBFZ1haym6UQ6ADH9AU8a5U+S0UYgV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709823704; c=relaxed/simple; bh=ipDoqaGJry8XFBbFQETVEMjCjvVX2Nh/sKemer023uI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=J1dH+Xy1D2EixRbSXLFn4xojVznNohfMk49nxLhmSQwsuh99CYByowg9Ck338vByFeXHPjkxzfGyP+RSEqGJgPhhiR/yCqKjBUjamlOMJHmK1FriaDGWgLPsZGgGU4/pVrSfLK+GWZpRflnsf+Z8fjavq6Jxelbxc8bCdpVAajE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=oVfDVpD2; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-33e6d364b7aso276535f8f.3 for ; Thu, 07 Mar 2024 07:01:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709823701; x=1710428501; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=BOmqNU1lRIv+DURE4y+VSSKM4JviZ9Mjbtz+cTDb3pQ=; b=oVfDVpD2rEQcNN+t1VExQRRMXde6sCLxfdQiGKZcaNkRFCwS+mUYEOiuHxEf89vQwN 0rnqYvoDVqIDtQ9rIeVSw164hEIkTEgvpy6TMNIuJGKvbMZnHx+4XFcizLvCkomh7/LQ KKzcZiNzu8V1VbiEwt+s4iSLKBftUzIGw5JSHxBdRAybgAPwDrxnJTN7cfytX5aXEnmc IjX2tm0rAUz2dBp3MGg75khgVoo7iN7lAiq/4FS8mx06XBPW3hehhCxuzZv0+JOaWtwG SjXQOuXMnZL6PQuzpTaIrJjUdZwcCISmRxrkgY62RrGCEt1BzagDq3DAFC2RI+jBBHZL peoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709823701; x=1710428501; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BOmqNU1lRIv+DURE4y+VSSKM4JviZ9Mjbtz+cTDb3pQ=; b=suO0ZC0MbN1wUyGcKK8VGsEwYuHjZPi8JTLe4DgJYrSaVuyrVpzHAgf0mT8c5d4Q8l OG2qPb3Um+Y6bt4i0+LoTL57OXA/uY0am8wGyJgZLWu2S9h3rM2EUSFbYSegH5kInY9b mnRwh2XY5lkLdLANFCYkQnldmRE/X0zYD0uq9mPmuvMeD92/ie80j/Y95FWAK/5bip3g LlI37SdbnTpnn+gV0gusXNczDnPBun7BNDHysfX5qUnwObFhDw/Zx2OJ7SKPaLXZwQe+ UAv9UMdUIc5O/SHpns9T2kKEiV9zw8q8j5ykAwdTHWJGtTkHXNiB4WBHTPbEUQa0vGby 8FfQ== X-Forwarded-Encrypted: i=1; AJvYcCXvWhiiXlWQYVDMiWcLfGfdEXUHVrEyEoIzacIU9XJjxaAN0G3Hi8SuONtrEzbEDz47MtXTQ1HY7Wc9Webfgt4xC5Qw8Km3qBSwrFsS X-Gm-Message-State: AOJu0YygySYnJ/AZw3hRQKMEWMHSMArGP+LQzEGRUmPbetpYwfYiO6fa +FVkflzbJjAjsq5y/gZBagqPrcPCsqfIw+y6F7zewUkUw8Knlpf/gQ05j5wJxGZaYUJenwJSLIw l X-Received: by 2002:a05:6000:11ce:b0:33d:a011:ae42 with SMTP id i14-20020a05600011ce00b0033da011ae42mr13601493wrx.38.1709823700652; Thu, 07 Mar 2024 07:01:40 -0800 (PST) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id cl5-20020a5d5f05000000b0033ce727e728sm8175322wrb.94.2024.03.07.07.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 07:01:40 -0800 (PST) Date: Thu, 7 Mar 2024 18:01:36 +0300 From: Dan Carpenter To: Muhammad Usama Anjum Cc: Yang Xiwen , kernel@collabora.com, kernel-janitors@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Jaehoon Chung , Ulf Hansson Subject: Re: [PATCH] mmc: dw_mmc: remove unneeded assignment Message-ID: References: <20240307122129.2359553-1-usama.anjum@collabora.com> <8cf4333a-b500-4fb7-8176-734fdc892da4@collabora.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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8cf4333a-b500-4fb7-8176-734fdc892da4@collabora.com> On Thu, Mar 07, 2024 at 07:51:37PM +0500, Muhammad Usama Anjum wrote: > On 3/7/24 5:22 PM, Yang Xiwen wrote: > > On 3/7/2024 8:21 PM, Muhammad Usama Anjum wrote: > >> The err is being set to 0 and replaced every time after this > >> assignment. Remove this assignment as it is extraneous. > >> > >> Fixes: 25d043841db1 ("mmc: dw_mmc: add support for hi3798mv200") > >> Signed-off-by: Muhammad Usama Anjum > >> --- > >> ? drivers/mmc/host/dw_mmc-hi3798mv200.c | 1 - > >> ? 1 file changed, 1 deletion(-) > >> > >> diff --git a/drivers/mmc/host/dw_mmc-hi3798mv200.c > >> b/drivers/mmc/host/dw_mmc-hi3798mv200.c > >> index 989ae8dda7228..96af693e3e37c 100644 > >> --- a/drivers/mmc/host/dw_mmc-hi3798mv200.c > >> +++ b/drivers/mmc/host/dw_mmc-hi3798mv200.c > >> @@ -133,7 +133,6 @@ static int > >> dw_mci_hi3798mv200_execute_tuning_mix_mode(struct dw_mci_slot *slot, > >> ????????????? goto tuning_out; > >> ? ????????? prev_err = err; > >> -??????? err = 0; > > > > > > Same for dw_mmc-hi3798cv200.c, maybe fix it as well? > Sent separately as different Fixes tag is required for that: > https://lore.kernel.org/all/20240307145013.2721326-1-usama.anjum@collabora.com > The subjects are identical though. regards, dan carpenter