aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2010-07-28 17:49:45 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2010-07-29 17:06:25 -0400
commit69e61d0c07fa28a05f699723a88d49e0014019b6 (patch)
treedc17f40f9765506b511b31a2a4afddc2f2c938c4 /drivers/firewire
parente5b06c077c592e7e1623641520787a3da7b7c6bf (diff)
firewire: core: remove unused code
ioctl_create_iso_context enforces ctx->header_size >= 4. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/core-cdev.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c
index f40098dec14b..1a14dbf097f0 100644
--- a/drivers/firewire/core-cdev.c
+++ b/drivers/firewire/core-cdev.c
@@ -1048,13 +1048,9 @@ static int ioctl_queue_iso(struct client *client, union ioctl_arg *arg)
1048 * We require that header_length is a multiple of 1048 * We require that header_length is a multiple of
1049 * the fixed header size, ctx->header_size. 1049 * the fixed header size, ctx->header_size.
1050 */ 1050 */
1051 if (ctx->header_size == 0) { 1051 if (u.packet.header_length == 0 ||
1052 if (u.packet.header_length > 0) 1052 u.packet.header_length % ctx->header_size != 0)
1053 return -EINVAL;
1054 } else if (u.packet.header_length == 0 ||
1055 u.packet.header_length % ctx->header_size != 0) {
1056 return -EINVAL; 1053 return -EINVAL;
1057 }
1058 header_length = 0; 1054 header_length = 0;
1059 } 1055 }
1060 1056