提交 46f2c21c 编写于 作者: H Henrik Kretzschmar 提交者: Mauro Carvalho Chehab

V4L/DVB (8682): V4L: fix return value of register video func

If a wrong device type is used with video_register_device_index() it should
better return an error number, instead of a constant.
Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 b045979d
无相关合并请求
......@@ -281,7 +281,7 @@ int video_register_device_index(struct video_device *vfd, int type, int nr,
default:
printk(KERN_ERR "%s called with unknown type: %d\n",
__func__, type);
return -1;
return -EINVAL;
}
/* pick a minor number */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部