mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ALSA: rme9652: Unneeded variable: "result".
This patch fixes below issue reported by coccicheck sound/pci/rme9652/rme9652.c:2161:5-11: Unneeded variable: "result". Return "0" on line 2167 Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
b7cad26d15
commit
2f235d92ac
1 changed files with 1 additions and 2 deletions
|
@ -2158,13 +2158,12 @@ static int snd_rme9652_prepare(struct snd_pcm_substream *substream)
|
||||||
{
|
{
|
||||||
struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
|
struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int result = 0;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&rme9652->lock, flags);
|
spin_lock_irqsave(&rme9652->lock, flags);
|
||||||
if (!rme9652->running)
|
if (!rme9652->running)
|
||||||
rme9652_reset_hw_pointer(rme9652);
|
rme9652_reset_hw_pointer(rme9652);
|
||||||
spin_unlock_irqrestore(&rme9652->lock, flags);
|
spin_unlock_irqrestore(&rme9652->lock, flags);
|
||||||
return result;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct snd_pcm_hardware snd_rme9652_playback_subinfo =
|
static const struct snd_pcm_hardware snd_rme9652_playback_subinfo =
|
||||||
|
|
Loading…
Add table
Reference in a new issue