projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b658cba
)
ALSA: core: timer: remove redundant assignment
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Wed, 2 Sep 2020 21:21:19 +0000
(16:21 -0500)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 3 Sep 2020 07:25:16 +0000
(09:25 +0200)
Cppcheck complains about a possible NULL pointer dereference but it
actually looks like the NULL assignment is not needed (same loop is
used in other parts of the file without it).
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20200902212133.30964-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c
patch
|
blob
|
history
diff --git
a/sound/core/timer.c
b/sound/core/timer.c
index
d9f85f2
..
1349f5b
100644
(file)
--- a/
sound/core/timer.c
+++ b/
sound/core/timer.c
@@
-173,7
+173,7
@@
EXPORT_SYMBOL(snd_timer_instance_free);
*/
static struct snd_timer *snd_timer_find(struct snd_timer_id *tid)
{
- struct snd_timer *timer
= NULL
;
+ struct snd_timer *timer;
list_for_each_entry(timer, &snd_timer_list, device_list) {
if (timer->tmr_class != tid->dev_class)