Commit 94d4b2d3 authored by Roland Dreier's avatar Roland Dreier Committed by Linus Torvalds

[PATCH] InfiniBand/core: compat_ioctl conversion minor fixes

Slightly tidy up Andi Kleen's compat_ioctl conversion for the InfiniBand MAD
driver by removing the no-longer-needed include of ioctl32.h, killing
unreachable code and doing some really anal whitespace fixing.
Signed-off-by: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d175d969
......@@ -43,7 +43,6 @@
#include <linux/poll.h>
#include <linux/rwsem.h>
#include <linux/kref.h>
#include <linux/ioctl32.h>
#include <asm/uaccess.h>
......@@ -502,14 +501,14 @@ static int ib_umad_close(struct inode *inode, struct file *filp)
}
static struct file_operations umad_fops = {
.owner = THIS_MODULE,
.read = ib_umad_read,
.write = ib_umad_write,
.poll = ib_umad_poll,
.owner = THIS_MODULE,
.read = ib_umad_read,
.write = ib_umad_write,
.poll = ib_umad_poll,
.unlocked_ioctl = ib_umad_ioctl,
.compat_ioctl = ib_umad_ioctl,
.open = ib_umad_open,
.release = ib_umad_close
.compat_ioctl = ib_umad_ioctl,
.open = ib_umad_open,
.release = ib_umad_close
};
static struct ib_client umad_client = {
......@@ -705,8 +704,6 @@ static int __init ib_umad_init(void)
return 0;
ib_unregister_client(&umad_client);
out_class:
class_unregister(&umad_class);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment