aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2021-03-10 16:49:08 +0800
committerRichard Weinberger <richard@nod.at>2021-04-15 23:10:33 +0200
commitea8e896cc15e8fac586d018733fd67f56cd721cc (patch)
tree7bedee4404b0698fa817200a10b80cc2edc6f889 /arch/um
parentum: Mark all kernel symbols as local (diff)
downloadlinux-dev-ea8e896cc15e8fac586d018733fd67f56cd721cc.tar.xz
linux-dev-ea8e896cc15e8fac586d018733fd67f56cd721cc.zip
um: Remove unneeded variable 'ret'
Fix the following coccicheck warning: ./arch/um/drivers/hostaudio_kern.c:125:10-14: Unneeded variable: "mask". Return "0" on line 131 Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/drivers/hostaudio_kern.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio_kern.c
index d35d3f305a31..5b064d360cb7 100644
--- a/arch/um/drivers/hostaudio_kern.c
+++ b/arch/um/drivers/hostaudio_kern.c
@@ -122,13 +122,11 @@ static ssize_t hostaudio_write(struct file *file, const char __user *buffer,
static __poll_t hostaudio_poll(struct file *file,
struct poll_table_struct *wait)
{
- __poll_t mask = 0;
-
#ifdef DEBUG
printk(KERN_DEBUG "hostaudio: poll called (unimplemented)\n");
#endif
- return mask;
+ return 0;
}
static long hostaudio_ioctl(struct file *file,