Message ID | 20230404072524.19014-12-johan+linaro@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2836181vqo; Tue, 4 Apr 2023 00:28:52 -0700 (PDT) X-Google-Smtp-Source: AKy350YTC3VmWF4pIB9NUFktjP21a1y7ybayiLJ55OIABMVJhkxkxyV2tH4JDP0NJhkYlQIxCRQb X-Received: by 2002:a62:1a57:0:b0:62d:b4aa:79f9 with SMTP id a84-20020a621a57000000b0062db4aa79f9mr1292668pfa.28.1680593331966; Tue, 04 Apr 2023 00:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680593331; cv=none; d=google.com; s=arc-20160816; b=tT+6jM0shLTZ57DgkQbGxRX4S0r4ybGB6ZG8GH78B6E+zrzbUuA13uy9nsMUUeTqjb sUKn95+PhELL6bId19RvR6xnXoMkcnxU5IJX1gQyvk3w1mRhtupez7pKI6peKOr0+jYp 1IWiKMhkgcXOY6yHh5DfjyNI51hcVZ/CT3rYTfV3SWwE46M8Z6laSTkZm+zAFnuKXJDU uFsmCEharNJ5wDsKk6uLwd1eAXg5AeJPMnDA+a4WDh0tbuhqS+InmEFwXPouPLZ4Ho6+ nwDKwbyFKHD8COSd6WAZE7pKpcIv49QvsR5JLfQ/7b+rCAkhmT7iI5nBw+ZnnGmsNIB6 P5qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZHYTHafzqQ7hQg+JBJ8HDYbJSlDI7Ujn/pyZ7+dLoIY=; b=z+YEgQKx+hVVW1zpyVNq/3+Vq2XZmKBs17Js4IjHV9Ibj09/Y2JNSAK9dmhculP+2y YaSDgMPCsbgJShTF+1NdYTm6buJspZvIIyt35QXHakBsQi/kXaYBuPjm58aObKDbYFVN nxr35VHQV6dYpOrfnxK+c8wx1HmPovTyQrmPOwS4pqRlY2d5bhaVqbSEz12uxi/R4Xq0 EB4CJzCTUbKWm8r5eBdU0UiEJa/RGZ7EpmIFVzjVzkOe4iGdGQoLq4jwBZl21Eu2llaS yFbXs06dOBhfcNVoBwf/iYwtRnzYWoZP8mwE0pFpi5dzWqxPKncEL4hXphezs5aNWaYm FF3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XqzZYad1; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a634203000000b005137bf7e2d3si9666976pga.582.2023.04.04.00.28.39; Tue, 04 Apr 2023 00:28:51 -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=@kernel.org header.s=k20201202 header.b=XqzZYad1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234031AbjDDH0c (ORCPT <rfc822;zwp10758@gmail.com> + 99 others); Tue, 4 Apr 2023 03:26:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233751AbjDDHZ4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Apr 2023 03:25:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 637D51FF2; Tue, 4 Apr 2023 00:25:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1897762F83; Tue, 4 Apr 2023 07:25:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2723FC43324; Tue, 4 Apr 2023 07:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680593146; bh=7+eEB6+2P3XXgph2YGuBM8i8htXYqW3z0W01wZr/o7E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XqzZYad1C+iT4nB9C/OiqNYS8rKp/zyfkAE3iSC5wZLufeOzwWM9AkHc0bjGfrgND EcPHjrIUXr8qA6bA2cRInaezVL566OiLirHvNe0uWf4q4R2My3IOCLjrm3oPBozc5S uEsUvUBfAfyNHZGd6Mk5Q14YRA17glRRrEcBm3wZ6zkCKJG9oNFxRc73fTNM8Lg4bU NnvJW228E3zIYFA7R75xdQd2c7xgNQY8Fcv5rhuZiYccr9tW/cmW0Kl3MP+H//z3tB lHwzusC2h2oZARxtgk0G/vXANgIvdRTlvgCfyIDMPfx9y6IkUh13xMlRRUAy5XujjI IXjULImlNtsSg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from <johan+linaro@kernel.org>) id 1pjb3V-0004xt-JP; Tue, 04 Apr 2023 09:26:13 +0200 From: Johan Hovold <johan+linaro@kernel.org> To: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org> Subject: [PATCH 11/11] USB: dwc3: clean up probe declarations Date: Tue, 4 Apr 2023 09:25:24 +0200 Message-Id: <20230404072524.19014-12-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230404072524.19014-1-johan+linaro@kernel.org> References: <20230404072524.19014-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762229833756838563?= X-GMAIL-MSGID: =?utf-8?q?1762229833756838563?= |
Series |
USB: dwc3: error handling fixes and cleanups
|
|
Commit Message
Johan Hovold
April 4, 2023, 7:25 a.m. UTC
Clean up the probe variable declarations by removing the stray newlines.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/usb/dwc3/core.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
On Tue, Apr 04, 2023, Johan Hovold wrote: > Clean up the probe variable declarations by removing the stray newlines. > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > --- > drivers/usb/dwc3/core.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > index 08432e109a3f..24d395b8868c 100644 > --- a/drivers/usb/dwc3/core.c > +++ b/drivers/usb/dwc3/core.c > @@ -1754,12 +1754,10 @@ static int dwc3_probe(struct platform_device *pdev) > { > struct device *dev = &pdev->dev; > struct resource *res, dwc_res; > + void __iomem *regs; > struct dwc3 *dwc; > - > int ret; > > - void __iomem *regs; > - > dwc = devm_kzalloc(dev, sizeof(*dwc), GFP_KERNEL); > if (!dwc) > return -ENOMEM; > -- > 2.39.2 > Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Thanks, Thinh
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 08432e109a3f..24d395b8868c 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1754,12 +1754,10 @@ static int dwc3_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct resource *res, dwc_res; + void __iomem *regs; struct dwc3 *dwc; - int ret; - void __iomem *regs; - dwc = devm_kzalloc(dev, sizeof(*dwc), GFP_KERNEL); if (!dwc) return -ENOMEM;