[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>
此提交包含在:
Joe Perches
2013-10-23 16:14:51 -03:00
提交者 Mauro Carvalho Chehab
父節點 12d1ee1f2d
當前提交 da4a733946
共有 3 個檔案被更改,包括 3 行新增10 行删除

查看文件

@@ -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));