staging: mei: mei_dev - kill unused members
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 25 May 2011 14:28:23 +0000 (17:28 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 20:20:33 +0000 (13:20 -0700)
remove write only/unsed variables
mei_dev.write_hang and mei_io_lis.tdevice_extension

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Oren Weil <oren.jer.weil@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/mei/init.c
drivers/staging/mei/interface.c
drivers/staging/mei/interrupt.c
drivers/staging/mei/mei_dev.h

index 73c298883c6ee284e92ee4b62acb5de9f4a2f989..26cb0041c47a0ec5dd45dbdd7e5534b77349b9e1 100644 (file)
@@ -39,7 +39,6 @@ void mei_initialize_list(struct mei_io_list *list, struct mei_device *dev)
        /* initialize our queue list */
        INIT_LIST_HEAD(&list->mei_cb.cb_list);
        list->status = 0;
-       list->device_extension = dev;
 }
 
 /**
@@ -521,7 +520,6 @@ void mei_host_client_properties(struct mei_device *dev)
         * with associated host client
         */
        bitmap_zero(dev->host_clients_map, MEI_CLIENTS_MAX);
-       dev->write_hang = -1;
        dev->open_handle_count = 0;
        bitmap_set(dev->host_clients_map, 0, 3);
        dev->mei_state = MEI_ENABLED;
index 4959aae37b85e90e81eede38b55ccb8b0d1e572b..ff67d6d487343206aed0604a08c18b8bc0f86dd6 100644 (file)
@@ -179,7 +179,6 @@ int mei_write_message(struct mei_device *dev,
        if ((dev->me_hw_state & ME_RDY_HRA) != ME_RDY_HRA)
                return 0;
 
-       dev->write_hang = 0;
        return 1;
 }
 
index 534b0b0a2745ee404f500bba6d77c8b0bb358ae4..53556beca17c5d1cb2d5a973ae956d4345e2090e 100644 (file)
@@ -1192,7 +1192,6 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
                dev_dbg(&dev->pdev->dev, "host buffer is not empty.\n");
                return 0;
        }
-       dev->write_hang = -1;
        *slots = mei_count_empty_write_slots(dev);
        /* complete all waiting for write CB */
        dev_dbg(&dev->pdev->dev, "complete all waiting for write cb.\n");
index 5aae6fd6e2c148420bcb0948bf210ed4286d7c02..ce4a8ca5a65ebe7b9396bb527dd8b8aaf78baa1e 100644 (file)
@@ -169,7 +169,6 @@ struct mei_cl {
 struct mei_io_list {
        struct mei_cl_cb mei_cb;
        int status;
-       struct mei_device *device_extension;
 };
 
 /* MEI private device struct */
@@ -265,7 +264,6 @@ struct mei_device {
        bool iamthif_flow_control_pending;
        bool iamthif_ioctl;
        bool iamthif_canceled;
-       u8 write_hang;
 };