Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp59768rdb; Thu, 25 Jan 2024 08:12:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/lZJQgbbkUzF0JBLrfEQ7EKlwfPRO3GJ+t9op/aETFInETwQgIQBCi+aVR+7Sioz1rIvP X-Received: by 2002:a2e:8ec2:0:b0:2cf:1535:9307 with SMTP id e2-20020a2e8ec2000000b002cf15359307mr700130ljl.52.1706199138301; Thu, 25 Jan 2024 08:12:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706199138; cv=pass; d=google.com; s=arc-20160816; b=Ta1IDJtuNwP0m5eRXi6i8cE1+dQt/8by0aRTZjqkr9z7hyHgdeLykOgVNWMFdn+M2o 1S9QlSf2g/mK64FPBQSdFJmGNMv4rSsXyiRq4Do2eFe/ciwldgeYae9hM5ot18Db94sj a1OR9e0wVmf7g8e4vhbJgtBFELv5GB4zJjJbbWsvc+b1vlWY3+5gAWRY6S+b7LpSJbGv ShSV32PAZIg48FqMwjWI4ln5ZmvC3DOvZH4AxXiy1LtQFq5lFhovQWRP/pUCpFx2oUdr W7kFSUNsKwKCNCquady7V/dzfgqt3g/WhqV5awPZBMhio+FBXbjuLCQQotpbvO8/LX78 eInQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:date:from :dkim-signature; bh=thvCsOZrNGRGgXPg5OrXa1foNoSDBWUjENvhwGyx3ks=; fh=QUJfFD/vprF6+44A87TFt8vvCwVic3M+MnkGV7bWpHw=; b=J0t4+6x4u1/UNYUW2XFl0arBT2iEtB11JDIWjaL3/C6oteSuuOlpIbkz5RQNlJ75sO JEMvusfdKErKpFNWPJaoAE1b29QY7Vswbayh9ZgPjHHbbUiCuVAYO/SO/re64in23JDr 5qas6r/BMqGnSyLIDbKSXFVY2C79UsRQ7YRWB69wuDv+6P59jU/4qwGEu42/wfBkUIwJ eUtBgR/E/5+JN2cVdtTcCDZ6AzkEEsP+uhqpjuKYeAowk0cOmKt7C4t4I9YM1tMNYghc PQZ3C3+31RCiqbBy6wx+N5xzT+dWmAqH0MuR7TD1P/zGTBhu1ytM1y0vp6OMR6LJAaY2 Yhjw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YwqjdWA1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-38873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38873-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m6-20020a056402510600b0055a55a806f8si7635063edd.478.2024.01.25.08.12.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 08:12:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YwqjdWA1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-38873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38873-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 117711F278F6 for ; Thu, 25 Jan 2024 16:12:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03F8C129A6C; Thu, 25 Jan 2024 16:12:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YwqjdWA1" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 D16EF12AACA; Thu, 25 Jan 2024 16:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706199129; cv=none; b=ssN+F4yFwnOJMtoazyAtE+SKNDFroa0BiB10RN8X6/glVafib/sGbnLxipxKKGCibv9T+VUUWo7+NdQOpnSoLs03MhgJxVfgj71+AwLqBkFBuYcUR2cPOQQJG/Bfxwff/bTjxkRPLx1bAUbWtneAVnf2m01C97Puf8KmhCeoPpI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706199129; c=relaxed/simple; bh=mDUOlVLrhkHD8tGE4iHD3AeMXzlT68MxWClAhVJxWjw=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=TgFDTOCpr3sPeXlfw+KGW80eepSAJKHnRmDwyTqBkkSu/93jtMr1tb80AlEMtliW5rWzqncF19xKh/EgzzaIMbMw1FanTmLEsgIghZLrFwgQfXo+LQIpdNYIw6M2DpndhmbUEysaXcscb+jW7BxtYxBq1yxiuHyVpF+yxUaA5Hs= 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=YwqjdWA1; arc=none smtp.client-ip=198.175.65.15 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=1706199128; x=1737735128; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=mDUOlVLrhkHD8tGE4iHD3AeMXzlT68MxWClAhVJxWjw=; b=YwqjdWA103rASeC93L+wVnYkTwViUWHO9TVxA8F6fBNLOWJzQvY5bv0w FBWKe+KHCASYWr2aqfE2rAAkMBbL2a7s12Jif9rgL3cUcndzqE6REBM87 1VuLd4NKFalbM9mUAwU1Lpekwie0VKXw262R6uTbm+kPe7rmmfcy8POXL osQPAzei+If/zdJ6yBaxz+zbBc/LiPb2MJazJbUzebojwCRql6puFzRME 5B8k/AlxCraLIuxx0VSKk+qZkS201qUZpzR5Dnz/CkhHTxV1QV5q45yNU ZWHcI0G6A4auwwHL2ocEnI056mKX2n9GHrYsO74QVNgBbgYxjAS5Bj6Gs w==; X-IronPort-AV: E=McAfee;i="6600,9927,10964"; a="2074478" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="2074478" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2024 08:12:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="21092170" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.94.252.55]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2024 08:12:04 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Thu, 25 Jan 2024 18:12:00 +0200 (EET) To: Ashok Raj cc: Jithu Joseph , Tony Luck , Hans de Goede , platform-driver-x86@vger.kernel.org, LKML Subject: Re: [PATCH 1/1] platform/x86/intel/ifs: Remove unnecessary ret init In-Reply-To: Message-ID: References: <20240125130328.11253-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323328-817356417-1706199120=:1444" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-817356417-1706199120=:1444 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 25 Jan 2024, Ashok Raj wrote: > Hi Ilpo >=20 > thanks for looking into it. >=20 > On Thu, Jan 25, 2024 at 03:03:28PM +0200, Ilpo J=E4rvinen wrote: > > ret variable is assigned unconditionally in ifs_load_firmware(), thus > > remove the unnecessary initialization of it. > >=20 > > Signed-off-by: Ilpo J=E4rvinen > > --- > > drivers/platform/x86/intel/ifs/load.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/drivers/platform/x86/intel/ifs/load.c b/drivers/platform/x= 86/intel/ifs/load.c > > index a1ee1a74fc3c..03e49b836a6b 100644 > > --- a/drivers/platform/x86/intel/ifs/load.c > > +++ b/drivers/platform/x86/intel/ifs/load.c > > @@ -383,7 +383,7 @@ int ifs_load_firmware(struct device *dev) > > =09unsigned int expected_size; > > =09const struct firmware *fw; > > =09char scan_path[64]; > > -=09int ret =3D -EINVAL; > > +=09int ret; > > =20 >=20 > Looks reasonable to me.=20 >=20 > I can keep this as a separate cleanup patch, or merge the change in this > patch. >=20 > What ever Hans/You prefer.=20 Hi, I was thinking of merging it myself into pdx86 review-ilpo -> next after=20 allowing it sit on the queue a day or two. IMO, doesn't need to be more=20 complicated than the usual process kernel process with patches, it would=20 just take extra time from all the more there are middlemens handling the=20 patch (after all this is just a trivial cleanup which I noticed while=20 reviewing the patches you sent and since it didn't conflict the series,=20 I just sent the obvious cleanup). But that's assuming you don't have anything conflicting beyond those=20 patches which you sent? If that's the case, it would be better for you to= =20 take care of it so just let me and I won't merge it myself until it comes= =20 back. --=20 i. --8323328-817356417-1706199120=:1444--