firewire: core: remove unused code
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 28 Jul 2010 21:49:45 +0000 (23:49 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 29 Jul 2010 21:06:25 +0000 (23:06 +0200)
ioctl_create_iso_context enforces ctx->header_size >= 4.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-cdev.c

index f40098dec14bd2275e20710a7a08f2e94fa08fb4..1a14dbf097f02f45ca99aea3072c65899921f4d1 100644 (file)
@@ -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
                         * 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;
                }