From: Stefan Richter Date: Wed, 28 Jul 2010 21:49:45 +0000 (+0200) Subject: firewire: core: remove unused code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69e61d0c07fa28a05f699723a88d49e0014019b6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git firewire: core: remove unused code ioctl_create_iso_context enforces ctx->header_size >= 4. Signed-off-by: Stefan Richter --- 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) * 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; }