Commit 69e61d0c07fa28a05f699723a88d49e0014019b6
1 parent
e5b06c077c
Exists in
master
and in
7 other branches
firewire: core: remove unused code
ioctl_create_iso_context enforces ctx->header_size >= 4. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Showing 1 changed file with 2 additions and 6 deletions Side-by-side Diff
drivers/firewire/core-cdev.c
... | ... | @@ -1048,13 +1048,9 @@ |
1048 | 1048 | * We require that header_length is a multiple of |
1049 | 1049 | * the fixed header size, ctx->header_size. |
1050 | 1050 | */ |
1051 | - if (ctx->header_size == 0) { | |
1052 | - if (u.packet.header_length > 0) | |
1053 | - return -EINVAL; | |
1054 | - } else if (u.packet.header_length == 0 || | |
1055 | - u.packet.header_length % ctx->header_size != 0) { | |
1051 | + if (u.packet.header_length == 0 || | |
1052 | + u.packet.header_length % ctx->header_size != 0) | |
1056 | 1053 | return -EINVAL; |
1057 | - } | |
1058 | 1054 | header_length = 0; |
1059 | 1055 | } |
1060 | 1056 |