Skip to content

Commit ea8e896

Browse files
Yang Lirichardweinberger
authored andcommitted
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>
1 parent d5027ca commit ea8e896

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎arch/um/drivers/hostaudio_kern.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,11 @@ static ssize_t hostaudio_write(struct file *file, const char __user *buffer,
122122
static __poll_t hostaudio_poll(struct file *file,
123123
struct poll_table_struct *wait)
124124
{
125-
__poll_t mask = 0;
126-
127125
#ifdef DEBUG
128126
printk(KERN_DEBUG "hostaudio: poll called (unimplemented)\n");
129127
#endif
130128

131-
return mask;
129+
return 0;
132130
}
133131

134132
static long hostaudio_ioctl(struct file *file,

0 commit comments

Comments
 (0)