Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4463131pxb; Sat, 6 Nov 2021 14:34:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjzvrYDgvFOJ/OGubwR3pl9qWYC8KgtW0a0aux3OGZUP6NS/XG0Q9/YWZTN9l5FcyJoPIR X-Received: by 2002:aa7:d648:: with SMTP id v8mr60539577edr.358.1636234494127; Sat, 06 Nov 2021 14:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636234494; cv=none; d=google.com; s=arc-20160816; b=mycnhMDg1QfY+r3tiaaAQCtlkdHaL73e/A20dbk4YvSavSJM8NcChZrcZix0B/CbRe OMAFMifUXA53DClbIyFK3aXu8ut7aN4iHIC5oTtwuzRRjiOAWkbVrABYQ/3Jg5KQMHJz b9vbaWNMoi0Bwb4kNb3q3xM+xiXwsi0FEMa3cgbiF7lHqCcPF+SkLw2Mx24Cog70T57v Od7gGNDHQRW4Z+T26FQhrifyJekLPQTDuAsr4TxTu4nExJrPfM2fdBijELQ0c9RZgZRj irwDb/j3dq8lc3vtXqXZ1PegYQ0nB1XRo+l9aFIQ82SecJI8q1dhK02p2avEEs/7V8Tx cFjQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8Qra9akannOKhHfzF9P4EEi/dtPKcdfqFmb0pyjRQ68=; b=lH7ZosZ/pTEHD8D3T32ZxJoprAl0lNv9rARos1r9yzTKY0UjvUVCnslu2oNjBn+JWd fxv0J0GPB74I/URSCg1JB6iXR0vYba4fQVKFSHlkgZlrPkiGG+4FMKmwXr6PimtMC1WY gR3PxCsDZZ7ON5G5L5uI0G7GsS/XmoZICI+IUUVOalIQiIM/deB/aBcXTmlIVJa1C0zA TGjgMZwRMuR5Re4TUyIHxz8E8RgjrLCpw19outIH+IFT7Qr2NaE32gJxKjX8Aw7MqhB4 y6tGwEOTwBgkypejWEVr8tY+k0TkKT3Csc7tl2RLMeRx6NqKXW2V4VNEV9cljhvyxofI DF/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dzv9XWCC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si17906017edu.58.2021.11.06.14.34.30; Sat, 06 Nov 2021 14:34:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dzv9XWCC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233409AbhKFPxJ (ORCPT + 99 others); Sat, 6 Nov 2021 11:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233459AbhKFPxI (ORCPT ); Sat, 6 Nov 2021 11:53:08 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0141C061746 for ; Sat, 6 Nov 2021 08:50:27 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id y11so19780317oih.7 for ; Sat, 06 Nov 2021 08:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8Qra9akannOKhHfzF9P4EEi/dtPKcdfqFmb0pyjRQ68=; b=dzv9XWCCxRprjKKXScrpOCvs+6FdSi28Gvt0E1xNYibSuwbNIz+resh9bS19/F+rFB t3N9/psI/V5V06B0wdF1Q83rUvrwpFcMIi8ABjTLHFXJZZxNYQbhP+IKTkB56rXKdRaA iGWrck51xPr9+jbs1gdQIJFuj8WU778qgruuT2oafrCA+iyRBsKXKYPGeGly0kJKqjv5 8LonxpWyKsTkJVtKSNpsh2smJm7vHFECuaTsIw+4feUfOXUnEheE2rD6/Dx4652yVGCa 3FXl0NyG2/wiL7MF8EqEGDY2mZFMIY4EniTD16YqZy5xcXtfvLoVHx6bSTkA5DoFrTBb gqJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8Qra9akannOKhHfzF9P4EEi/dtPKcdfqFmb0pyjRQ68=; b=TAJFkf3SoMKdiLsizeGXcOtEUcq8WNzwq+wjqMeWzGDIJP9TTegWEzPUYjwtoIZLby Jvzw0kmk9ReJxdtSGIJ0KNYiGhBRUlo3C2OhMRV+udJWl8YhxdLtC0U8tjL3v7fC7yoY x8CpD8Uyah+lW74ufXpKswVcDQyG0LjRpAAkeqh+O/uBNuNt69p2QKMXCUeI1abc02+P vGY4yZktuPeW+R3yt+hVHWrKYxKro3EWFEi7Yf2bpwqmKnA2bZDA5xB+IAv5b3Gt7WqR +0ufW11oU4ufUtLOn7fnksGHqtd1bLEIIySSbIme0RxACDAASXBA18Mu5RA7fOS9tD+E fplg== X-Gm-Message-State: AOAM532kWvGh7MX78gXBhxL+YjmWNBpo+aTrmmBqfDKnagEXVZbDiytF 7wrjubDX+GgDl3OT0qugOz6/gg== X-Received: by 2002:a05:6808:144f:: with SMTP id x15mr27350233oiv.132.1636213826928; Sat, 06 Nov 2021 08:50:26 -0700 (PDT) Received: from yoga (rrcs-97-77-166-58.sw.biz.rr.com. [97.77.166.58]) by smtp.gmail.com with ESMTPSA id o42sm3797396ooi.9.2021.11.06.08.50.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Nov 2021 08:50:26 -0700 (PDT) Date: Sat, 6 Nov 2021 10:50:24 -0500 From: Bjorn Andersson To: Xu Wang Cc: agross@kernel.org, amitk@kernel.org, thara.gopinath@linaro.org, rafael@kernel.org, daniel.lezcano@linaro.org, rui.zhang@intel.com, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] thermal/drivers/qcom/spmi-adc-tm5: Remove unnecessary print function dev_err() Message-ID: References: <20211105013340.38300-1-vulab@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211105013340.38300-1-vulab@iscas.ac.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 04 Nov 20:33 CDT 2021, Xu Wang wrote: > The print function dev_err() is redundant because > platform_get_irq() already prints an error. > > Signed-off-by: Xu Wang Reviewed-by: Bjorn Andersson > --- > drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c > index 824671cf494a..8492dd3bfed6 100644 > --- a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c > +++ b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c > @@ -612,10 +612,8 @@ static int adc_tm5_probe(struct platform_device *pdev) > adc_tm->base = reg; > > irq = platform_get_irq(pdev, 0); > - if (irq < 0) { > - dev_err(dev, "get_irq failed: %d\n", irq); > + if (irq < 0) > return irq; > - } > > ret = adc_tm5_get_dt_data(adc_tm, node); > if (ret) { > -- > 2.25.1 >