On Tue, 13 Jun 2023 16:24:58 +0300 Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > On Tue, Jun 13, 2023 at 12:37 PM Herve Codina <herve.codina@xxxxxxxxxxx> wrote: > > On Mon, 12 Jun 2023 17:37:00 +0300 > > Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > > ... > > > > > + struct snd_kcontrol_new control = {0}; > > > > > > 0 is not needed. > > > > Not for this one. > > > > The variable is in stack. > > Some of the structure members will be set in the code but we need to ensure > > that all others are set to 0. > > Yes, and as I said, 0 is not needed. Compiler assumes that if you just > use plain {}. > My bad, sorry, I misunderstood. Will be update to an empty {} in the next iteration. Thanks, Hervé -- Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com