projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fadb49
)
ALSA: sparc: no need to initialise statics to 0
author
Jason Wang
<wangborong@cdjrlc.com>
Sun, 12 Dec 2021 07:04:22 +0000
(15:04 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 12 Dec 2021 09:01:04 +0000
(10:01 +0100)
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>
sound/sparc/dbri.c
patch
|
blob
|
history
diff --git
a/sound/sparc/dbri.c
b/sound/sparc/dbri.c
index 6b84f66e4af4e843f3f21819dca9c7c7938d7821..3881e1c1b08a3ccc9ded7f0766cefa950af641ff 100644
(file)
--- a/
sound/sparc/dbri.c
+++ b/
sound/sparc/dbri.c
@@
-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. */
@@
-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)
@@
-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;