ioctl_create_iso_context enforces ctx->header_size >= 4.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
* We require that header_length is a multiple of
* the fixed header size, ctx->header_size.
*/
- if (ctx->header_size == 0) {
- if (u.packet.header_length > 0)
- return -EINVAL;
- } else if (u.packet.header_length == 0 ||
- u.packet.header_length % ctx->header_size != 0) {
+ if (u.packet.header_length == 0 ||
+ u.packet.header_length % ctx->header_size != 0)
return -EINVAL;
- }
header_length = 0;
}