From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACAD5C433EF for ; Thu, 12 May 2022 15:44:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356058AbiELPoo (ORCPT ); Thu, 12 May 2022 11:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356055AbiELPoi (ORCPT ); Thu, 12 May 2022 11:44:38 -0400 Received: from smtp1.de.adit-jv.com (smtp1.de.adit-jv.com [93.241.18.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6B226B0AD; Thu, 12 May 2022 08:44:37 -0700 (PDT) Received: from hi2exch02.adit-jv.com (hi2exch02.adit-jv.com [10.72.92.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id A08DC3C04C1; Thu, 12 May 2022 17:44:36 +0200 (CEST) Received: from lxhi-065 (10.72.94.11) by hi2exch02.adit-jv.com (10.72.92.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 12 May 2022 17:44:36 +0200 Date: Thu, 12 May 2022 17:44:31 +0200 From: Eugeniu Rosca To: Greg Kroah-Hartman CC: Eugeniu Rosca , Alan Stern , Mathias Nyman , Kai-Heng Feng , Rajat Jain , Andrew Lunn , Chris Chiu , Marek Szyprowski , , , Naveen kumar Sunkari , Bhuvanesh Surachari , Eugeniu Rosca Subject: Re: [PATCH] usb: hub: Simplify error and success path in port_over_current_notify Message-ID: <20220512154431.GA4536@lxhi-065> References: <1652354127-3499-1-git-send-email-erosca@de.adit-jv.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.72.94.11] X-ClientProxiedBy: hi2exch02.adit-jv.com (10.72.92.28) To hi2exch02.adit-jv.com (10.72.92.28) Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Dear Greg, On Do, Mai 12, 2022 at 01:38:36 +0200, Greg Kroah-Hartman wrote: > On Thu, May 12, 2022 at 01:15:27PM +0200, Eugeniu Rosca wrote: > > From: Bhuvanesh Surachari [..] > > if (!envp[1]) > > - goto exit; > > + goto exit_path; > > No need to rename this, right? > > > > > - envp[2] = NULL; > > kobject_uevent_env(&hub_dev->kobj, KOBJ_CHANGE, envp); > > > > +exit_path: > > kfree(envp[1]); > > -exit: > > Move this up one line? Thank you for your comments. Much appreciated. Please, find the updated version at: https://lore.kernel.org/linux-usb/1652369834-4480-1-git-send-email-erosca@de.adit-jv.com Best regards, Eugeniu