Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: hda/ca0132 - Use NULL instead of 0

Use NULL for initializing the snd_kcontrol_new.tlv field, instead of
0, as warned by sparse:
sound/pci/hda/patch_ca0132.c:5519:22: warning: Using plain integer as NULL pointer

Also, the driver does the same initialization twice, once for
knew.tlv.c and another for knew.tlv.p while both point to the same
address (these are union). Drop the latter superfluous one.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

+1 -2
+1 -2
sound/pci/hda/patch_ca0132.c
··· 5516 5516 5517 5517 sprintf(namestr, "FX: %s %s Volume", pfx, dirstr[dir]); 5518 5518 5519 - knew.tlv.c = 0; 5520 - knew.tlv.p = 0; 5519 + knew.tlv.c = NULL; 5521 5520 5522 5521 switch (nid) { 5523 5522 case XBASS_XOVER: