Skip to content

Commit

Permalink
ALSA: sparc: no need to initialise statics to 0
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Jason Wang authored and tiwai committed Dec 12, 2021
1 parent 6fadb49 commit 808709d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/sparc/dbri.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ static void dbri_cmdsend(struct snd_dbri *dbri, s32 *cmd, int len)
{
u32 dvma_addr = (u32)dbri->dma_dvma;
s32 tmp, addr;
static int wait_id = 0;
static int wait_id;

wait_id++;
wait_id &= 0xffff; /* restrict it to a 16 bit counter. */
Expand Down Expand Up @@ -1926,7 +1926,7 @@ static void dbri_process_interrupt_buffer(struct snd_dbri *dbri)
static irqreturn_t snd_dbri_interrupt(int irq, void *dev_id)
{
struct snd_dbri *dbri = dev_id;
static int errcnt = 0;
static int errcnt;
int x;

if (dbri == NULL)
Expand Down Expand Up @@ -2591,7 +2591,7 @@ static int dbri_probe(struct platform_device *op)
struct snd_dbri *dbri;
struct resource *rp;
struct snd_card *card;
static int dev = 0;
static int dev;
int irq;
int err;

Expand Down

0 comments on commit 808709d

Please sign in to comment.