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

[media] media-devnode: just return 0 instead of using a var

Instead of allocating a var to store 0 and just return it,
change the code to return 0 directly.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

+1 -2
+1 -2
drivers/media/media-devnode.c
··· 192 192 static int media_release(struct inode *inode, struct file *filp) 193 193 { 194 194 struct media_devnode *mdev = media_devnode_data(filp); 195 - int ret = 0; 196 195 197 196 if (mdev->fops->release) 198 197 mdev->fops->release(filp); ··· 200 201 return value is ignored. */ 201 202 put_device(&mdev->dev); 202 203 filp->private_data = NULL; 203 - return ret; 204 + return 0; 204 205 } 205 206 206 207 static const struct file_operations media_devnode_fops = {