Commit ea8e896c authored by Yang Li's avatar Yang Li Committed by Richard Weinberger

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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent d5027ca6
...@@ -122,13 +122,11 @@ static ssize_t hostaudio_write(struct file *file, const char __user *buffer, ...@@ -122,13 +122,11 @@ static ssize_t hostaudio_write(struct file *file, const char __user *buffer,
static __poll_t hostaudio_poll(struct file *file, static __poll_t hostaudio_poll(struct file *file,
struct poll_table_struct *wait) struct poll_table_struct *wait)
{ {
__poll_t mask = 0;
#ifdef DEBUG #ifdef DEBUG
printk(KERN_DEBUG "hostaudio: poll called (unimplemented)\n"); printk(KERN_DEBUG "hostaudio: poll called (unimplemented)\n");
#endif #endif
return mask; return 0;
} }
static long hostaudio_ioctl(struct file *file, static long hostaudio_ioctl(struct file *file,
......
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