diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 14:18:27 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 16:59:28 -0400 |
commit | 8b37c6455fc8f43e0e95db2847284e618db6a4f8 (patch) | |
tree | 0c8ee283ebd2db1399d6623d4280e10c0e0a08a8 /drivers/media/media-devnode.c | |
parent | 7c9950768fb4a0a3fbd3a866ae94734c5078fd0c (diff) |
[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>
Diffstat (limited to 'drivers/media/media-devnode.c')
-rw-r--r-- | drivers/media/media-devnode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/media-devnode.c b/drivers/media/media-devnode.c index 7acd19c881de..ebf9626e5ae5 100644 --- a/drivers/media/media-devnode.c +++ b/drivers/media/media-devnode.c | |||
@@ -192,7 +192,6 @@ static int media_open(struct inode *inode, struct file *filp) | |||
192 | static int media_release(struct inode *inode, struct file *filp) | 192 | static int media_release(struct inode *inode, struct file *filp) |
193 | { | 193 | { |
194 | struct media_devnode *mdev = media_devnode_data(filp); | 194 | struct media_devnode *mdev = media_devnode_data(filp); |
195 | int ret = 0; | ||
196 | 195 | ||
197 | if (mdev->fops->release) | 196 | if (mdev->fops->release) |
198 | mdev->fops->release(filp); | 197 | mdev->fops->release(filp); |
@@ -201,7 +200,7 @@ static int media_release(struct inode *inode, struct file *filp) | |||
201 | return value is ignored. */ | 200 | return value is ignored. */ |
202 | put_device(&mdev->dev); | 201 | put_device(&mdev->dev); |
203 | filp->private_data = NULL; | 202 | filp->private_data = NULL; |
204 | return ret; | 203 | return 0; |
205 | } | 204 | } |
206 | 205 | ||
207 | static const struct file_operations media_devnode_fops = { | 206 | static const struct file_operations media_devnode_fops = { |