Re: [PATCH v2] usb: core: remove unnecessary goto in usb_create_newid_files()
From: Greg KH
Date: Wed Mar 04 2026 - 10:52:18 EST
On Wed, Mar 04, 2026 at 07:42:16AM -0800, Mark Adamenko wrote:
> The goto to 'exit' only returns the already initialized variable
> 'error', which would be 0. At that point it could not yet be anything
> else. Replacing with an early return 0 removes the
> need for the label entirely.
>
> Signed-off-by: Mark Adamenko <marusik.adamenko@xxxxxxxxx>
> ---
> v2: fix missing return statement at end of function
This is v3 :(