Re: [PATCH] usb: gadget: f_midi: allow customizing the USB MIDI interface string through configfs

From: Victor Krawiec
Date: Tue Dec 09 2025 - 08:37:26 EST


> 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