summaryrefslogtreecommitdiff
path: root/drivers/media/usb/em28xx/em28xx-input.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-10-23 23:14:51 +0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-07 14:01:42 +0400
commitda4a733946aa360e2219ce2d33b8d25ce4aa1959 (patch)
treeb023fd537a41580694d5b6c66311a18e9eadf258 /drivers/media/usb/em28xx/em28xx-input.c
parent12d1ee1f2df0ee56441a76a0ad0984936b046aa8 (diff)
downloadlinux-da4a733946aa360e2219ce2d33b8d25ce4aa1959.tar.xz
[media] media: Remove OOM message after input_allocate_device
Emitting an OOM message isn't necessary after input_allocate_device as there's a generic OOM and a dump_stack already done. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx-input.c')
-rw-r--r--drivers/media/usb/em28xx/em28xx-input.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-input.c b/drivers/media/usb/em28xx/em28xx-input.c
index 9a5dad96ff08..61c061f3a476 100644
--- a/drivers/media/usb/em28xx/em28xx-input.c
+++ b/drivers/media/usb/em28xx/em28xx-input.c
@@ -557,10 +557,8 @@ static int em28xx_register_snapshot_button(struct em28xx *dev)
em28xx_info("Registering snapshot button...\n");
input_dev = input_allocate_device();
- if (!input_dev) {
- em28xx_errdev("input_allocate_device failed\n");
+ if (!input_dev)
return -ENOMEM;
- }
usb_make_path(dev->udev, dev->snapshot_button_path,
sizeof(dev->snapshot_button_path));