提交 bdabfa54 编写于 作者: S Stefan Richter

firewire: core: remove an always false test

struct fw_cdev_allocate_iso_resource.bandwidth is unsigned.
Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
上级 df7ce663
......@@ -1366,8 +1366,7 @@ static int init_iso_resource(struct client *client,
int ret;
if ((request->channels == 0 && request->bandwidth == 0) ||
request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL ||
request->bandwidth < 0)
request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL)
return -EINVAL;
r = kmalloc(sizeof(*r), GFP_KERNEL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册