Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1019216lqg; Sat, 2 Mar 2024 11:19:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWy+mHJYfJQ+pfEue7SN45wdD6saa1eIpeSAC25DeJil6aPFhg4EyW9z1gm/nyuxxgol2Q0kAAIFqbqHgY+VFT4DCgPekswmWAn4I2Dng== X-Google-Smtp-Source: AGHT+IFrFiQmqdPrI2xeHYH0NI9663CaXcCkgI/1O18OkJDtnZ2S/y4WHVnPqboWt24jwMJCKQwk X-Received: by 2002:a05:6a21:328a:b0:1a0:ce31:128b with SMTP id yt10-20020a056a21328a00b001a0ce31128bmr6533268pzb.34.1709407148544; Sat, 02 Mar 2024 11:19:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709407148; cv=pass; d=google.com; s=arc-20160816; b=Dj/VFUsbTP3bVcN9JRMopLkEWbsn7fuWsiQpqHhyTlgDnuI46EZAsbhus5/akppH3/ yepCzs1EUnI2gufnOLGuyfOoR5tDamXOAmJ9SyjIv2Ell/Ws4PeGAisYZm9lkUJhMdQ9 UEg+3Nfz1ZdD4y0Qnb8bbgWGDTk6UlDIadxMx6mSXSxg5ssD39jFOVhAjmYuv2grvf+Y yeQzSKqZoooNOKW6sCsHW73a8F2hJDHfE8aQ0A7olRdop5duqgzgL8AeWHu95H2dU/fo cYTNVZ7fmpMXbUK4ZCO6Pp3izT6ZcOCRMBYB/x4uMi9EeeVdKUkSkEQEGliHcwi0I8aR KcRg== 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=5iUkRDGBMJrpVKWmss2zUnvXDgENw6b6EMeZ8UXy71c=; fh=PEkH9v0Zmj/RlPLDCbcKTtjdUyBUqfhfh12IfknXudU=; b=Hc+TSFcWLO/B79kQxUuqYaGGR2P3eHVbC54ce8VQYgPImmPBGhv7NBhulAYoBRQBn8 MzoPWTfdGOXLijWpNXq/u5jobgp/YITJ8Xf4PhCvWusH/rvxn7YCLV9MFOT4myXLsaqh jZjVgLmRZ7Jl7U2XHTqqXA35iDifvJzsQtyliF7dyrHfxY54XIQD6CYoOBuNk0IT2HY3 lbATHwTFV+QOt23a4CPbIb0zKjfVLk/QtJWsBxHMIfy7RAt9yj0BmwslpxUUnBQSpev2 0LlkCsN0jMrZK1y5niQo+qv7pRgfRAbT/TGSN1lzqPvJhC4/oTo5m8St8RWnl9iBJ1hu ByLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTF3Rejw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89562-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l6-20020a656806000000b005dc85a7eb1dsi5764767pgt.299.2024.03.02.11.19.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 11:19:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89562-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTF3Rejw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89562-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 09964283CDF for ; Sat, 2 Mar 2024 19:19:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 178BA3FE4F; Sat, 2 Mar 2024 19:19:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XTF3Rejw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3D74117C77; Sat, 2 Mar 2024 19:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709407139; cv=none; b=qIMlxy8K41cU6BopA80WEPJ89lA5brHMccI6C+w/pmT5wrbdqCh3/eW0WKoQj97py7CTeNYJuL+mC6B7VQNZBIqBxlTSWan0FQGJcy+1T+Nf0JSkFx3Am1pA9W39htuj/rk2xLQHn6z3rc9q6ZWHRY9FTov3m0+WZBuQQYhLNrw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709407139; c=relaxed/simple; bh=NzbhSdr/NBjCmH9e1ImgNzn6dVpYSWiisFslYjeKN+s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z7WlaR19Y5gla7qxRmEUnGCBQIhPSJPi1rrzgEOxpXwzt7HuqduHqbWZEaY2oyH6yaRFpjDeG0/KP0Xuv3dqxaUT/GOc/i4tIeguHUJKzDJdh3kZzc9yrgGI20ufeyG8fTwcr5IcDclDiFclm/QfGHqv7Ak5qjmaKrfMVWUDG0U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XTF3Rejw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FE4CC433C7; Sat, 2 Mar 2024 19:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709407138; bh=NzbhSdr/NBjCmH9e1ImgNzn6dVpYSWiisFslYjeKN+s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XTF3RejwvLu0SrNmQ4uhnkGJhFVZ9PnIvjaGMxvqTK9f+kiwiQte99mTTgDgKE+Wg RhkI6UtsRLJqNIoMNmSrZYAyhY2KzuTtoAw79/5NDkejoeQxgj2j7xYbNO92tdSH6J 2yDEuP682dtD+oV89DIKkhsbpXOHC7Ky4rqJ/f91UAR0Qm6pa4U8BdZGE1QWl8UWoJ QbZA5LGBHwJT0ePHuNhJ0QfB5GWOITz3IGr18PJCTGaeMhK6NThnek2eMFH6UiZfw9 yg5s9DqP6dSDbRRczjw+ApC6xrmT9wDpuZPA7nWHwdi9pPODtrdpo9YhDdmsssJmA6 I75LkgHCDYm8A== Date: Sat, 2 Mar 2024 13:18:56 -0600 From: Bjorn Andersson To: Mukesh Ojha Cc: konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v12 6/9] firmware: qcom: scm: Remove log reporting memory allocation failure Message-ID: <2dn2o57yfgfwrkdb2dcdz4qdlhxyhr4tozdsxumgkib5tlgnj7@6qpvoe2zb3q4> References: <20240227155308.18395-1-quic_mojha@quicinc.com> <20240227155308.18395-7-quic_mojha@quicinc.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: <20240227155308.18395-7-quic_mojha@quicinc.com> On Tue, Feb 27, 2024 at 09:23:05PM +0530, Mukesh Ojha wrote: > Remove redundant memory allocation failure. > > WARNING: Possible unnecessary 'out of memory' message > + if (!mdata_buf) { > + dev_err(__scm->dev, "Allocation of metadata buffer failed.\n"); > > Signed-off-by: Mukesh Ojha Reviewed-by: Bjorn Andersson This seems unrelated to the rest of the series, if you send independent patches (or patch series) on their own it's easy to just pick them. Regards, Bjorn > --- > drivers/firmware/qcom/qcom_scm.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/firmware/qcom/qcom_scm.c b/drivers/firmware/qcom/qcom_scm.c > index 3fd89cddba3b..6c252cddd44e 100644 > --- a/drivers/firmware/qcom/qcom_scm.c > +++ b/drivers/firmware/qcom/qcom_scm.c > @@ -598,10 +598,9 @@ int qcom_scm_pas_init_image(u32 peripheral, const void *metadata, size_t size, > */ > mdata_buf = dma_alloc_coherent(__scm->dev, size, &mdata_phys, > GFP_KERNEL); > - if (!mdata_buf) { > - dev_err(__scm->dev, "Allocation of metadata buffer failed.\n"); > + if (!mdata_buf) > return -ENOMEM; > - } > + > memcpy(mdata_buf, metadata, size); > > ret = qcom_scm_clk_enable(); > -- > 2.43.0.254.ga26002b62827 >