staging: unisys: remove obsolete proc entry code
authorBenjamin Romer <benjamin.romer@unisys.com>
Mon, 16 Mar 2015 17:58:12 +0000 (13:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Mar 2015 20:53:48 +0000 (21:53 +0100)
There is an unused variable in the visorchipset_bus_info structure that
used to be for a proc entry, so remove it, and the code that referenced
it. We don't need it anymore.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorchipset/visorchipset.h
drivers/staging/unisys/visorchipset/visorchipset_main.c

index 98f3ba4c13acefb42ab78b94ed4430af1a464ead..bd46df9ef45a36095aa637d9ad911ec8b2cf247f 100644 (file)
@@ -133,7 +133,6 @@ struct visorchipset_bus_info {
        u8 *description;        /* UTF8 */
        u64 reserved1;
        u32 reserved2;
-       MYPROCOBJECT *proc_object;
        struct {
                u32 server:1;
                /* Add new fields above. */
index 98238bc8ee22908a5ca3264890d0227c32efb8b0..a60597e8f20bebb36b1c62242a7789f1c438c888 100644 (file)
@@ -503,10 +503,6 @@ bus_info_clear(void *v)
 {
        struct visorchipset_bus_info *p = (struct visorchipset_bus_info *) (v);
 
-       if (p->proc_object) {
-               visor_proc_DestroyObject(p->proc_object);
-               p->proc_object = NULL;
-       }
        kfree(p->name);
        p->name = NULL;