Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yang Li and committed by
Richard Weinberger
ea8e896c d5027ca6

+1 -3
+1 -3
arch/um/drivers/hostaudio_kern.c
··· 122 122 static __poll_t hostaudio_poll(struct file *file, 123 123 struct poll_table_struct *wait) 124 124 { 125 - __poll_t mask = 0; 126 - 127 125 #ifdef DEBUG 128 126 printk(KERN_DEBUG "hostaudio: poll called (unimplemented)\n"); 129 127 #endif 130 128 131 - return mask; 129 + return 0; 132 130 } 133 131 134 132 static long hostaudio_ioctl(struct file *file,