Commit 63632563 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Takashi Iwai

ALSA: core: timer: remove redundant assignment

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: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200902212133.30964-5-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b658cbab
...@@ -173,7 +173,7 @@ EXPORT_SYMBOL(snd_timer_instance_free); ...@@ -173,7 +173,7 @@ EXPORT_SYMBOL(snd_timer_instance_free);
*/ */
static struct snd_timer *snd_timer_find(struct snd_timer_id *tid) 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) { list_for_each_entry(timer, &snd_timer_list, device_list) {
if (timer->tmr_class != tid->dev_class) if (timer->tmr_class != tid->dev_class)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment