[PATCH][1/12] InfiniBand/core: compat_ioctl conversion minor fixes

2005-01-23 Thread Roland Dreier
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: Roland Dreier <[EMAIL PROTECTED]>

--- linux-bk.orig/drivers/infiniband/core/user_mad.c2005-01-23 
21:48:45.709546808 -0800
+++ linux-bk/drivers/infiniband/core/user_mad.c 2005-01-23 21:49:32.872376968 
-0800
@@ -43,7 +43,6 @@
 #include 
 #include 
 #include 
-#include 
 
 #include 
 
@@ -502,14 +501,14 @@
 }
 
 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 @@
 
return 0;
 
-   ib_unregister_client(_client);
-
 out_class:
class_unregister(_class);
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH][1/12] InfiniBand/core: compat_ioctl conversion minor fixes

2005-01-23 Thread Roland Dreier
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: Roland Dreier [EMAIL PROTECTED]

--- linux-bk.orig/drivers/infiniband/core/user_mad.c2005-01-23 
21:48:45.709546808 -0800
+++ linux-bk/drivers/infiniband/core/user_mad.c 2005-01-23 21:49:32.872376968 
-0800
@@ -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 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 @@
 
return 0;
 
-   ib_unregister_client(umad_client);
-
 out_class:
class_unregister(umad_class);
 

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/