[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251209133643.52560-1-victor.krawiec@arturia.com>
Date: Tue, 9 Dec 2025 14:36:43 +0100
From: Victor Krawiec <victor.krawiec@...uria.com>
To: tiwai@...e.de
Cc: abdul.rahim@...ahoo.com,
gregkh@...uxfoundation.org,
jilliandonahue58@...il.com,
jkeeping@...usicbrands.com,
kees@...nel.org,
linux-kernel@...r.kernel.org,
linux-usb@...r.kernel.org,
victor.krawiec@...uria.com
Subject: Re: [PATCH] usb: gadget: f_midi: allow customizing the USB MIDI interface string through configfs
> SNDRV_DEFAULT_STR1 is NULL, and this fact can simplify things a lot.
>
> So, it's better to initialize explicitly with NULL instead of
> SNDRV_DEFAULT_STR1, then you can just do NULL-check of the pointer
> without the use of *_allocated field (that can be dropped).
Thank you for the review. I apologize for the delayed reply.
In my next iteration I will drop the *_allocated field and do simple NULL-checks.
I will also update Documentation as I realized this is missing from the patch.
Best regards
Victor
Powered by blists - more mailing lists