Commit 69e61d0c authored by Stefan Richter's avatar Stefan Richter

firewire: core: remove unused code

ioctl_create_iso_context enforces ctx->header_size >= 4.
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent e5b06c07
...@@ -1048,13 +1048,9 @@ static int ioctl_queue_iso(struct client *client, union ioctl_arg *arg) ...@@ -1048,13 +1048,9 @@ static int ioctl_queue_iso(struct client *client, union ioctl_arg *arg)
* We require that header_length is a multiple of * We require that header_length is a multiple of
* the fixed header size, ctx->header_size. * the fixed header size, ctx->header_size.
*/ */
if (ctx->header_size == 0) { if (u.packet.header_length == 0 ||
if (u.packet.header_length > 0) u.packet.header_length % ctx->header_size != 0)
return -EINVAL; return -EINVAL;
} else if (u.packet.header_length == 0 ||
u.packet.header_length % ctx->header_size != 0) {
return -EINVAL;
}
header_length = 0; header_length = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment