Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1778474rwb; Fri, 2 Dec 2022 00:37:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf5I9Ls5im+Im9CSsMmRgsTt0jFFsMNBRWyanAIaqsNiOJd2O3sX1tUaERcpkfAPeCdurYrj X-Received: by 2002:a05:6a00:2a9:b0:572:c12a:17f5 with SMTP id q9-20020a056a0002a900b00572c12a17f5mr54576928pfs.67.1669970267763; Fri, 02 Dec 2022 00:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669970267; cv=none; d=google.com; s=arc-20160816; b=WDCCCuzG3hiMZQoWqfWy3/uU66m4AQh2VyeVL3EeQwjxni5U8Hi7trTkAxWhwZ0lj3 w5cbzqUMtUAJ1+81RXL0kxYcT3GhCKJQ6oJb+2MJ/+ipHFr0L0hWn/5f6aqqrioRmEwe Sc9OKbDC1fLJ5Tzq5Zu5lMEoriZ1f5uEEpikGTwpJ1tLzfiEPnQ5ogD5waq1ZtMNHLS1 rGh/ZfGj4Zz4g8t1r3pSfAy6dV4Ks5gBxdEItKLZkHvf/8h7s7GkFJEj08Td90ZewfLI u2YLdA3Nj2yROHPu2YqZMCF7+dWbD5/GzShNDcSiCcYznA2qYrmDp7WFnCUZyujfp6eh Q1RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nDu6wdj2BavaJhgV2+IGABHC/KEWWb+4yyQcwbwd+rA=; b=z/zhDtZQE5tGz3fQ5IvJbVQDRe4HnyomhS1Q7qRQgAbPSCQngUkgRHtggKZe652X1M Zr/O78cy3Z4VYWRPDVlPYsgfXkvvLF8Hg2+hM6IEPwyLMtaqWTvHFGDwQC5oQF+47hBV 6Pl1M32XzwECNZ+Zgtp+z+10ZOW1taPPAIIlVbeBjS1bSrwKrVHcS/MW0oCuwPpnj6bE ERPlIe4QoQflLEeVIimG2OHNcFD3Z3I8K+azh9AfeYOOs1eGi6GoAPQO5kyqHaolujCx 33Y8x8ZhmOVPqEuf9XqvdVqZay2nsIziONel/o3IrYD9xa/6voVm9DqfMGh8ctmAMLAe 1o1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vGIxaz68; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a17090aa60800b00213120e0c85si9287928pjq.156.2022.12.02.00.37.37; Fri, 02 Dec 2022 00:37:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vGIxaz68; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232450AbiLBHkh (ORCPT + 82 others); Fri, 2 Dec 2022 02:40:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232336AbiLBHke (ORCPT ); Fri, 2 Dec 2022 02:40:34 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CAD2B0B74 for ; Thu, 1 Dec 2022 23:40:34 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id 21so4185782pfw.4 for ; Thu, 01 Dec 2022 23:40:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=nDu6wdj2BavaJhgV2+IGABHC/KEWWb+4yyQcwbwd+rA=; b=vGIxaz68/q/F+Cc79hSj1Yrfct0QR+YaiyK5BQ4C6hiZyHx/8iu6y8E1PtRzXKEnzd s9nXKon0twvku4AZQbm055w40EBHnDL6JPYOlxUbIjUIXCKtG+4oo18baBM7adk7YXDd bAjOjJkst88dSaFg7cIdCItKVRFr1McJ6Q7rPs/U6W7ROvkGJ7oQyoGeQlWnH0dEDMn5 2/OzC6HJQ47VwY9YtMb46EGL7qkqD8qEEMtUroNW33oXC1dZotRDcZJ+sQi0+ERv9Noz OL/BwIz8fRqvvb11QAIxCyGvhfs53+UOdgk0e3LxwwIEytbmELTBaAgUACZH2kBEQqbd HOLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=nDu6wdj2BavaJhgV2+IGABHC/KEWWb+4yyQcwbwd+rA=; b=0qX48y+2GhGv829Cq1dDBvfb1coCnbUWpvf/gqVJ2Wv4b8w+RmpZUSW5xJ+QAMO0ki V5iKr7vGlXgmur8hNGI9xUg9mVbTqNdkZ9mOT8PuDhMQaIBCQ3NCsHDNWIIBP2zQIXme FOUB7oETNxhL7TRo5eA3/PU+4RTliHrUb6WCxae9zEkoW33Ifpus67bq3ieh2AR5X8Tz Eu2AVtenFGImzVRRaDu37QCqunZ6AABbXgrN6qLNPxnqbGrEZHKiJ0yhJ3xgclI/KJQI Wmi9mv2/fXVgiWmZNhOvk7Jc/4z22hX30dS6iuAxsNyfgVzg75f8wI7ejW5uW773UJjB cdwA== X-Gm-Message-State: ANoB5pkY6SSx1EaEtkaSVgjR9ocpJEnuit+ufSg8lavwZ1OneV6268zC uDoGUxSjYfhuQvnQuCdytYux X-Received: by 2002:a63:ec07:0:b0:470:90f1:6216 with SMTP id j7-20020a63ec07000000b0047090f16216mr62174034pgh.42.1669966833731; Thu, 01 Dec 2022 23:40:33 -0800 (PST) Received: from thinkpad ([27.111.75.154]) by smtp.gmail.com with ESMTPSA id z15-20020a655a4f000000b0046faefad8a1sm3630828pgs.79.2022.12.01.23.40.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 23:40:32 -0800 (PST) Date: Fri, 2 Dec 2022 13:10:25 +0530 From: Manivannan Sadhasivam To: Andrew Halaney Cc: andersson@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, jejb@linux.ibm.com, martin.petersen@oracle.com, p.zabel@pengutronix.de, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] scsi: ufs: ufs-qcom: Use dev_err() where possible Message-ID: <20221202074025.GE5356@thinkpad> References: <20221201230810.1019834-1-ahalaney@redhat.com> <20221201230810.1019834-5-ahalaney@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221201230810.1019834-5-ahalaney@redhat.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 01, 2022 at 05:08:10PM -0600, Andrew Halaney wrote: > dev_err() statements are better to use than pr_err(), so switch to > those. > > In a similar vein, the check on the dev_req_params pointer here is > not needed, the two places this function is called never pass in a > NULL pointer, so instead of using dev_err() there just remove it. > > Signed-off-by: Andrew Halaney Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > drivers/ufs/host/ufs-qcom.c | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index b1fcff1fad0c..4350c44a6fc7 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -680,12 +680,6 @@ static int ufs_qcom_pwr_change_notify(struct ufs_hba *hba, > struct ufs_dev_params ufs_qcom_cap; > int ret = 0; > > - if (!dev_req_params) { > - pr_err("%s: incoming dev_req_params is NULL\n", __func__); > - ret = -EINVAL; > - goto out; > - } > - > switch (status) { > case PRE_CHANGE: > ufshcd_init_pwr_dev_param(&ufs_qcom_cap); > @@ -709,7 +703,7 @@ static int ufs_qcom_pwr_change_notify(struct ufs_hba *hba, > dev_max_params, > dev_req_params); > if (ret) { > - pr_err("%s: failed to determine capabilities\n", > + dev_err(hba->dev, "%s: failed to determine capabilities\n", > __func__); > goto out; > } > -- > 2.38.1 > -- மணிவண்ணன் சதாசிவம்