summaryrefslogtreecommitdiffstats
path: root/sound/pci/lx6464es
diff options
context:
space:
mode:
authorHariprasad Kelam <hariprasad.kelam@gmail.com>2019-07-10 04:30:59 +0200
committerTakashi Iwai <tiwai@suse.de>2019-07-10 11:53:03 +0200
commit7a3c2b69386102de9e78fa9ea679898f5502f77d (patch)
tree20f0b4e394f86772941e269d776e7b244dc059c0 /sound/pci/lx6464es
parentALSA: firewire-lib: code refactoring for local variables (diff)
downloadlinux-7a3c2b69386102de9e78fa9ea679898f5502f77d.tar.xz
linux-7a3c2b69386102de9e78fa9ea679898f5502f77d.zip
ALSA: lx6464es: Remove unneeded variable err
This patch fixes below issue reported by coccicheck sound/pci/lx6464es/lx6464es.c:256:5-8: Unneeded variable: "err". Return "0" on line 258 Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/lx6464es')
-rw-r--r--sound/pci/lx6464es/lx6464es.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c
index 1771a6dcbe18..583ca7384d83 100644
--- a/sound/pci/lx6464es/lx6464es.c
+++ b/sound/pci/lx6464es/lx6464es.c
@@ -253,9 +253,8 @@ exit:
static int lx_pcm_close(struct snd_pcm_substream *substream)
{
- int err = 0;
dev_dbg(substream->pcm->card->dev, "->lx_pcm_close\n");
- return err;
+ return 0;
}
static snd_pcm_uframes_t lx_pcm_stream_pointer(struct snd_pcm_substream