Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5265327ybi; Tue, 30 Jul 2019 17:24:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC6uj1nQB4HDAu7Wy6Rmg889amDYA5BU/WLXkNyxDeKqdCLc9c3IzLgWQ5tG0n7pB/r+VQ X-Received: by 2002:a17:902:2983:: with SMTP id h3mr118611175plb.45.1564532643778; Tue, 30 Jul 2019 17:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564532643; cv=none; d=google.com; s=arc-20160816; b=adoCOY2YOByPb6RRf8RFsvTF3iLQURsUzegmHqnxZLscZ9ONKXB6ytKFOLINWoAAbT WOou4TdWJNyeHAVOYwJveiVV+5EsGDTa1jSq+ruNBaokQlAYoDSmFQP9HaoXUY4GjODf Tn7F9N1/e48artM9K7xvP8fLwvZBg5xweBVToEC3abBGKfjWwZ7rXkQQCi4Q24MN89bI CWSDI4qPS74woCemOPILmSuuqLYbjRZCrKNEnvYjUnrp9rTz1Hwp+/3kjuIHmumNvPzM 7pL7+hnZcm6zphKSDFLzSlcTWSqutLnWWuTAXDT4S316DBZrYv9ZeKRlWR6cXF0bYbIu O2XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=0wsN+KJA8xiJvr3XyIgCaOEJjalBpg3xXR11DXL3shc=; b=otgkWbi1ezxF/C7B61pl3T4BxMq42IX8yLofs+t2y527I7uShFPz8dFrvggSkf94Zz fZqtk7zXeHIns4CGlPOk5weoSzV3wZascqWS37iuML8EeJ8CfxXxQqv5/Fw2+ukpXvVM nfjaZk6Ea1CTwIjoMU5UR30paQNN0kEM40YaK7qj4MyX6pGlpTF6sAytoMUss8Wjs2P8 9XfKwp2TbJCysaRKgltLLD04sE18Z60wbxF7LVBgjZ0Tdz3n9ydK1xpGa8lfssoc/mJB U6fZtQTCnzCv0S1UhXtUKHRak15ELiF6cyazXO3I5QXYFqcBkEKDOgkU6YXz2I8FV6xS HEqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hHhYgVjg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si30817462pgh.159.2019.07.30.17.23.48; Tue, 30 Jul 2019 17:24:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hHhYgVjg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728440AbfGaARX (ORCPT + 99 others); Tue, 30 Jul 2019 20:17:23 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:48479 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728341AbfGaARW (ORCPT ); Tue, 30 Jul 2019 20:17:22 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20190731001720epoutp011d74c14887b5d5b19cd24a3e39536048~2Vch1W1FW0648506485epoutp01S for ; Wed, 31 Jul 2019 00:17:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20190731001720epoutp011d74c14887b5d5b19cd24a3e39536048~2Vch1W1FW0648506485epoutp01S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1564532240; bh=0wsN+KJA8xiJvr3XyIgCaOEJjalBpg3xXR11DXL3shc=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=hHhYgVjgI3z1EVj8zFc2fcOg7RsjnHXnffcG91510k2HSHemqF0o1shHNEpDDiNVu 4Yi5tN+wHH12FDTF0w2ko55m+Yoxf1RJtvZeYP5sobYZ6o5Rp+VvZLy4+w/JICU0uK +UJBVIAUSC6hMpQK5T4ocvq3syoisc2izVzheSVM= Received: from epsnrtp6.localdomain (unknown [182.195.42.167]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20190731001719epcas1p45b4429fee3eadbb9e963f7ef373f3c2b~2VchiSiqW3240232402epcas1p4O; Wed, 31 Jul 2019 00:17:19 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.152]) by epsnrtp6.localdomain (Postfix) with ESMTP id 45yvBN1vqqzMqYkl; Wed, 31 Jul 2019 00:17:16 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 3E.8B.04066.B0ED04D5; Wed, 31 Jul 2019 09:17:15 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190731001715epcas1p2b6c26041de170892ebb332fd1df29447~2VcdM4l_r0306403064epcas1p2h; Wed, 31 Jul 2019 00:17:15 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190731001715epsmtrp1f15c1f44490639399904f8b92a79dd7f~2VcdMGw5j1858918589epsmtrp1s; Wed, 31 Jul 2019 00:17:15 +0000 (GMT) X-AuditID: b6c32a37-29ba59c000000fe2-f0-5d40de0b7926 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 16.BD.03706.A0ED04D5; Wed, 31 Jul 2019 09:17:14 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190731001714epsmtip262b28069a48f3a443e4ddccfa5cc8a68~2VcdALDMx0669706697epsmtip2t; Wed, 31 Jul 2019 00:17:14 +0000 (GMT) Subject: Re: [PATCH v6 12/57] extcon: Remove dev_err() usage after platform_get_irq() To: Stephen Boyd , linux-kernel@vger.kernel.org Cc: MyungJoo Ham , Greg Kroah-Hartman From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Wed, 31 Jul 2019 09:20:19 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190730181557.90391-13-swboyd@chromium.org> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnk+LIzCtJLcpLzFFi42LZdlhTT5f7nkOswaNvYhbNi9ezWVzeNYfN 4nbjCjaL43eeMjmweMxuuMjisX/uGnaPvi2rGD0+b5ILYInKtslITUxJLVJIzUvOT8nMS7dV 8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wBWqmkUJaYUwoUCkgsLlbSt7Mpyi8tSVXI yC8usVVKLUjJKbAs0CtOzC0uzUvXS87PtTI0MDAyBSpMyM6YcOceY8EL3orGlswGxj9cXYyc HBICJhJ7jtxk7GLk4hAS2MEoserDUjYI5xOjREvXVnYI5xujxP3D15lgWqZeug1VtZdRordh ExtIQkjgPaPE8Z9JILawQLhE98mdLCC2iICLxOEfS8FqmAXiJFbMPAIWZxPQktj/4gZYnF9A UeLqj8dAd3Bw8ArYSRz9owMSZhFQlVh39RvYXlGBCIlPDw6zgti8AoISJ2c+ARvDKWAlcez0 XBaI8eISt57MZ4Kw5SWat85mBrl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3EOMEhzMSiK8i8XtY4V4UxIrq1KL8uOLSnNSiw8xSnOwKInzPs07FikkkJ5YkpqdmlqQ WgSTZeLglGpgLFl33yX7iPt7ueal0Sw7m8PlOSbqN7AXPHukrG5vuCzH/2mt4V0bZ+vkk9uT lnLv3ximIbVVaX0qz27Z72arluSt23LnrI84K8fEAPkrurmrixw7f79vZ+Bz2/d/xebXrzfx WqZlseqGuN5qUVZfPdfvlccK7++VcuvLn9ixbvshFxJ3OCFLiaU4I9FQi7moOBEAmqaw3I0C AAA= X-CMS-MailID: 20190731001715epcas1p2b6c26041de170892ebb332fd1df29447 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190730181616epcas5p17ffc6701dd37593e06caaa91576984cf References: <20190730181557.90391-1-swboyd@chromium.org> <20190730181557.90391-13-swboyd@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19. 7. 31. 오전 3:15, Stephen Boyd wrote: > We don't need dev_err() messages when platform_get_irq() fails now that > platform_get_irq() prints an error message itself when something goes > wrong. Let's remove these prints with a simple semantic patch. > > // > @@ > expression ret; > struct platform_device *E; > @@ > > ret = > ( > platform_get_irq(E, ...) > | > platform_get_irq_byname(E, ...) > ); > > if ( \( ret < 0 \| ret <= 0 \) ) > { > ( > -if (ret != -EPROBE_DEFER) > -{ ... > -dev_err(...); > -... } > | > ... > -dev_err(...); > ) > ... > } > // > > While we're here, remove braces on if statements that only have one > statement (manually). > > Cc: MyungJoo Ham > Cc: Chanwoo Choi > Cc: Greg Kroah-Hartman > Signed-off-by: Stephen Boyd > --- > > Please apply directly to subsystem trees > > drivers/extcon/extcon-adc-jack.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c > index ee9b5f70bfa4..ad02dc6747a4 100644 > --- a/drivers/extcon/extcon-adc-jack.c > +++ b/drivers/extcon/extcon-adc-jack.c > @@ -140,10 +140,8 @@ static int adc_jack_probe(struct platform_device *pdev) > return err; > > data->irq = platform_get_irq(pdev, 0); > - if (data->irq < 0) { > - dev_err(&pdev->dev, "platform_get_irq failed\n"); > + if (data->irq < 0) > return -ENODEV; > - } > > err = request_any_context_irq(data->irq, adc_jack_irq_thread, > pdata->irq_flags, pdata->name, data); > Applied it. Thanks. -- Best Regards, Chanwoo Choi Samsung Electronics