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

ALSA: sparc: no need to initialise statics to 0

Static variables do not need to be initialised to 0, because compiler
will initialise all uninitialised statics to 0. Thus, remove the
unneeded initializations.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Link: https://lore.kernel.org/r/20211212070422.281924-1-wangborong@cdjrlc.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Jason Wang and committed by
Takashi Iwai
808709d7 6fadb494

+3 -3
+3 -3
sound/sparc/dbri.c
··· 688 688 { 689 689 u32 dvma_addr = (u32)dbri->dma_dvma; 690 690 s32 tmp, addr; 691 - static int wait_id = 0; 691 + static int wait_id; 692 692 693 693 wait_id++; 694 694 wait_id &= 0xffff; /* restrict it to a 16 bit counter. */ ··· 1926 1926 static irqreturn_t snd_dbri_interrupt(int irq, void *dev_id) 1927 1927 { 1928 1928 struct snd_dbri *dbri = dev_id; 1929 - static int errcnt = 0; 1929 + static int errcnt; 1930 1930 int x; 1931 1931 1932 1932 if (dbri == NULL) ··· 2591 2591 struct snd_dbri *dbri; 2592 2592 struct resource *rp; 2593 2593 struct snd_card *card; 2594 - static int dev = 0; 2594 + static int dev; 2595 2595 int irq; 2596 2596 int err; 2597 2597