Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1296738iog; Thu, 16 Jun 2022 03:26:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uqm+hyzHyK/iwJdI+WVPNJfBIE6pCOLJ5YwFyetsY9yazHTtPUiLtU6/1vhuOtdwk94DyF X-Received: by 2002:a63:67c3:0:b0:3fe:465:bfa2 with SMTP id b186-20020a6367c3000000b003fe0465bfa2mr3846329pgc.12.1655375190900; Thu, 16 Jun 2022 03:26:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655375190; cv=pass; d=google.com; s=arc-20160816; b=yyLcNroKw1//d1szZvcwgA42XedFoPYDj1dkR2dGZJfwKI7kn0NsMauuY4IicfMJ6a i8na/LtPsfLqO4yclk4KnKYEeRlwBqIDld2se/36gB9Yvk+28eftThqa4v9ebYv7LtBO 9ZY6aTLD6jCDT1+GCrQVvzEpGc+aShQ/viKhkV/zfK1lvSX5rFQuzeUlrBDho7bBGgyp KVs7SSVYupHUq9EQVledD3sIWVRs8KmcaYSA0HW04bcionwAF+gj5C5LrXJFU42EM+kZ THN1lrynb1R3oI9LW6V9Uk3RTC+kc7T08Q1tjwBtg3sSmmwz8ufevHW8Gh/nf8xLYbvN 2kOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=SWtoDcUCX5zzVwG/ipCoPQOc323RqHXTrsUn62oILt8=; b=w01oYenvuPlvjcV2kc/6sTXNeA0/PSmG6aKOJHv3buGH1F96+sIwwimzQJJgJvfTq4 2UwL87wOsYpuacHnK4RyEpN3ElcW+ZZlvrn40p9xltS+uQBDqgUo38HxqtZwyutPuJuK nogZFEWDOtNvXow9UjF24dakLCTUv56PgrzkdRO2lQbRExdfdA37G+l7s/kjUz1WC+dK 4pzn2J+DOyi6ea6qtwK38mbfJvyggTw/hG9bH8ih9qF7bs3j9C7qEzh6YQzciHjeZ+Il eBjQ+NiHyrA0zAGonH9sAIEohKMdWOYSSpb/xVTRlb2xKBqfd9f4OZ89sP0MCV6EIeI+ DE7A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@aspeedtech.com header.s=selector1 header.b=p8BH0ylX; arc=pass (i=1 spf=pass spfdomain=aspeedtech.com dkim=pass dkdomain=aspeedtech.com dmarc=pass fromdomain=aspeedtech.com); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a63f00e000000b003fd1b9e2d1csi1885346pgh.91.2022.06.16.03.26.19; Thu, 16 Jun 2022 03:26:30 -0700 (PDT) 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=@aspeedtech.com header.s=selector1 header.b=p8BH0ylX; arc=pass (i=1 spf=pass spfdomain=aspeedtech.com dkim=pass dkdomain=aspeedtech.com dmarc=pass fromdomain=aspeedtech.com); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230291AbiFPKQO (ORCPT + 99 others); Thu, 16 Jun 2022 06:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbiFPKQL (ORCPT ); Thu, 16 Jun 2022 06:16:11 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2108.outbound.protection.outlook.com [40.107.255.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95E865D5F0; Thu, 16 Jun 2022 03:16:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UUYV04sTr+hfEZWT/P8r41nuCRaR7WbdxygoJa/B0ujBKP81SDS5cqa3yfDwGA3XB4o9+Y0brBqH9S37epwwSoW7hpyodZeu3Ecg3Al2WyTglPVd5nK1xZinYN6gf+rvSdUQGhur38evweeylYD83Tvz7NLuvxEpc6iAUTWPuEG6Be+pEIAYJeu5zjnUi81k+KgSSzWHTT+9OJX+QoEcu5RiT8UHRKqC6iA02nVEM7rDI2W98kym8FiFsA/2bG6DorGiMYUOrugXR+sQS+JVbZ9/9g0WHMSDycrusSlbKtF5qJ1XAKjo5ScS+asGSZ0Y1a7+Ek0/tojjzLuvIuEMIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SWtoDcUCX5zzVwG/ipCoPQOc323RqHXTrsUn62oILt8=; b=XxL4dtghhw7pxv5jUZQ4KgB1ie1Mr8kVmtGVT52qWXGIrELAdGphbzS9FDFUGwKs3LOz3s1oFcAvMTjgdDDHw/Qm0GAQXzTgpqiyOOQkRDu+yRfo73eqKEQClvbP7mUIl+UgkrejPQgRjtLoe9cALgbLoyENzvf4ql89JwAFyFJPkihM/cr3bgjkP0VGJyXKY5CcQG482ZBNinkWhpG10g7uU21oyzKRAbW0yyo90FkFGK6X95+tJ/pl0vlZ43DpUN/Y9WJIVXdreIJC8Yx4zGXX78ZeqAleXKnudyO3MyEAUfq02mMQwzIK0FGdfz4IT7DDcBKGzFz+saCrSm+SPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aspeedtech.com; dmarc=pass action=none header.from=aspeedtech.com; dkim=pass header.d=aspeedtech.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aspeedtech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SWtoDcUCX5zzVwG/ipCoPQOc323RqHXTrsUn62oILt8=; b=p8BH0ylXvxVSb5miotC27SB04HBR2pDx6YJ66McfxyY+BCUHdai67VjrIiu91JQTclOXSye3O39/5GQadVU3IN6PFtiasc8eUw7ldGtHXwRThNidr0lvptAoFpg84X+LCz3K7QBalm9YR6+8dfnSgBXcTOxxDQKRERwbHeek9MTUG2arrrurL9BostzizlNAntweAaM5ChGnTi8TbNXLeB+RQDh6/TbLJi7gqhOix0c/mmcwpwetw8AHEBoK//rQdI6nBRl1A5AwRMJuQTp9/VNcWrrvObCqB/B1/ZrXGX/kFzGoDOKVj3fG07mrT8xezmyUW+XVjj8bKFSaYiD2pw== Received: from HK0PR06MB3202.apcprd06.prod.outlook.com (2603:1096:203:87::17) by SG2PR06MB2764.apcprd06.prod.outlook.com (2603:1096:4:23::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Thu, 16 Jun 2022 10:16:06 +0000 Received: from HK0PR06MB3202.apcprd06.prod.outlook.com ([fe80::7c42:9783:92c9:f237]) by HK0PR06MB3202.apcprd06.prod.outlook.com ([fe80::7c42:9783:92c9:f237%7]) with mapi id 15.20.5332.022; Thu, 16 Jun 2022 10:16:06 +0000 From: Neal Liu To: Jiapeng Chong CC: "balbi@kernel.org" , "gregkh@linuxfoundation.org" , "joel@jms.id.au" , "andrew@aj.id.au" , "sumit.semwal@linaro.org" , "christian.koenig@amd.com" , "linux-aspeed@lists.ozlabs.org" , "linux-usb@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-media@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linaro-mm-sig@lists.linaro.org" Subject: RE: [PATCH] usb: gadget: Remove unnecessary print function dev_err() Thread-Topic: [PATCH] usb: gadget: Remove unnecessary print function dev_err() Thread-Index: AQHYgWATtppy2IZglE2yH02xMWGTe61R0ViQ Date: Thu, 16 Jun 2022 10:16:05 +0000 Message-ID: References: <20220616090410.128483-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20220616090410.128483-1-jiapeng.chong@linux.alibaba.com> Accept-Language: en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=aspeedtech.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e2e87e38-09bf-4375-9397-08da4f81397c x-ms-traffictypediagnostic: SG2PR06MB2764:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wEG0D9mb2ByLwYRQS++geUu3JulF13vKfAPkmP5tSuZgyKJ/7L/KF0dT9c7ztZqyProP10fLIN3v9pdtpWI4VNHq+7zN8KFhKNUEBFP3O+X0UiPmZSlsG/3ZMrPZrwunwHPAzjzAFFpabuRSkeMnwfEFguzy88vZXkdg1By5bQQq0S3kEl3Fxtx+wvSRYgWRRiIIRbQaNm/klvVvhuEB/I34/x+Va7RO15hmx471ljefVv+AhAauIqcf+sVrNivPIEkzBZ1bXXRsjeJ+Iza4Ur0sfGvHjuBDdFLnONIfG3bgR+uvpX+jgJJq71nWYYxyO/LK4duXyFQghZZe5ba6Ng2ruUNn2s9Xt2iEVB77yyUsLfXkKsRARLtQDV0wKFE3EMCratfZVng0Bl+6YwrdlR66cPcd8iTH7+ri05hPBqWscq0qgSzXsw6XdLxSmoAuCNgAjQTgwdFGmILqvqICYiidrpSN0f4LIXlFH++z3CKOhu608WXzHexBz/n0i2UXTxWFSAqhprMZqNyLm8o+3ZypDC5AtqUF0E+0jxyf2lG+shwV2SEW1C8F5/NQrWqsTCpvIjdd0TXRvl3N+FEZRQTSAHUwjtkPAB+Gpy4T3eB31yZT1znqgybUUlnjjLJF2LUZzBH5AZid+ID+egfAwMhFPi1hSQ3epUQdR0iwyTdPlLiKgdmYNi694Mo8xo8Nz1LL9lD3+L1JklyfQxkJ4g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HK0PR06MB3202.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(346002)(39850400004)(366004)(136003)(396003)(186003)(41300700001)(9686003)(83380400001)(316002)(26005)(54906003)(6916009)(33656002)(7696005)(86362001)(55016003)(6506007)(66556008)(66446008)(76116006)(64756008)(66476007)(8676002)(4326008)(66946007)(71200400001)(7416002)(38100700002)(8936002)(5660300002)(2906002)(122000001)(52536014)(508600001)(38070700005)(4744005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hRoow4H3k7kMuIKUf3yIpFUSQVN51K+JKiUDbXoaQsa8zOREUeeKF/nSPVIf?= =?us-ascii?Q?25jJtUNUJMYPzkGAEdTAZfNz4URv/s6APABcxClopOA91se7rS4j3G+ESU8Y?= =?us-ascii?Q?+rCdg+kGyXQ4nq8WIJcJTIMXQoZQY+Hi+VeUIibc1rmFWrcbGSc+mGzMcAxi?= =?us-ascii?Q?EkQV0ygt2JnyOlullhaGNwHJL+1z7+QBOW2ZpAwp4pd/6zjajt9gjK5vo9FM?= =?us-ascii?Q?UB4feRsBdxRMpSrpbrEf2yuAJ91SNIQEGUmSVRn5fqq82kTn38/xe1KlwF9i?= =?us-ascii?Q?E+7XUq9LQuK8PD4yg+kLEAFO7uFCcJ2gpADZ3ZbngBL+88VJpR1cUbrHxZ9S?= =?us-ascii?Q?AJl0h1zkceirv5QNP8DG5qZy7HORXfXQbJTJxDFlHYmK/SdGyqjN+t+FV3uM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sw3Pjh0eXdnve76FF?= =?us-ascii?Q?DatZmlydGGPDiGzNYJWw2h7rCJkgLxEmJULnlNA5Gc7Z7WU4rpI6hZJdGjXN?= =?us-ascii?Q?fkTXEx3NxRh10A8BZgI5Fjc/OdE42me1Sba0p3CJzVcvaxXjtxjG2Ov2qUcb?= =?us-ascii?Q?0f+3HnMnz4SIVEBlwuMZsl3OCntGXAM8XYKGS+p35L83EwJ1LY5M5y8rh7Bg?= =?us-ascii?Q?uEgeumLO55Xetk84cB3g3UPsRqJi3g84rFLuAhYmrjonYYj9CfRZo3GRoRO2?= =?us-ascii?Q?XXOB5fEXoA5XXkHsDjd+SSOBejQNrf3jMHMKgJGwSG3ejPuHKkP9VicQgjFb?= =?us-ascii?Q?64XOVqULPSVndHzs2JTE94waornqaKrsHJEbBBDg5YoM9N/YsRziYJFRonco?= =?us-ascii?Q?qjDbChoocL4Gom7Qs+TUB/URTw6gbjYf/vEkZ3/l1bkMUrl19J7UOzr93inm?= =?us-ascii?Q?j3Sz6z+clw=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: aspeedtech.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HK0PR06MB3202.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e2e87e38-09bf-4375-9397-08da4f81397c X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2022 10:16:06.0031 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43d4aa98-e35b-4575-8939-080e90d5a249 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: udPFDQJgl1IULP9pVKz2uQDHjlp7uFavP9NUZ8dHHwhQTtPs3zm2ZFM2BBe31pCObHltjYu1SHzmT61PLKwnjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB2764 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR autolearn=no 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 > The print function dev_err() is redundant because platform_get_irq() alre= ady > prints an error. >=20 > This was found by coccicheck: >=20 > ./drivers/usb/gadget/udc/aspeed_udc.c:1546:2-9: line 1546 is redundant > because platform_get_irq() already prints an error. >=20 > Signed-off-by: Jiapeng Chong Acked-by: Neal Liu > --- > drivers/usb/gadget/udc/aspeed_udc.c | 1 - > 1 file changed, 1 deletion(-) >=20 > diff --git a/drivers/usb/gadget/udc/aspeed_udc.c > b/drivers/usb/gadget/udc/aspeed_udc.c > index 1fc15228ff15..2c3dc80d6b8c 100644 > --- a/drivers/usb/gadget/udc/aspeed_udc.c > +++ b/drivers/usb/gadget/udc/aspeed_udc.c > @@ -1543,7 +1543,6 @@ static int ast_udc_probe(struct platform_device > *pdev) > /* Find interrupt and install handler */ > udc->irq =3D platform_get_irq(pdev, 0); > if (udc->irq < 0) { > - dev_err(&pdev->dev, "Failed to get interrupt\n"); > rc =3D udc->irq; > goto err; > } > -- > 2.20.1.7.g153144c