aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/main.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2012-11-11 10:37:59 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-15 18:34:18 -0500
commitdb3ed43185c6f5d4fd6c5ac963347b849540996e (patch)
tree46690fbfd58c7d2da479865c7061f6c50b8d6d64 /drivers/misc/mei/main.c
parente773efc405026bb8540c84bf45420bd66d5b34a7 (diff)
mei: use type struct mei_cl *cl instead of void in struct mei_cb
We can use correct type 'struct mei_cl' instead of 'void *' for file_private in the struct mei_cb as there is no other type assigned to this member of the structure We rename the member from file_private to cl Remove about 10 lines of declarations of temporary variables used for type casting Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/main.c')
-rw-r--r--drivers/misc/mei/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index bea545a5ae2b..e0e39c498d12 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -189,13 +189,9 @@ static struct mei_cl_cb *find_read_list_entry(
189 struct mei_cl_cb *next = NULL; 189 struct mei_cl_cb *next = NULL;
190 190
191 dev_dbg(&dev->pdev->dev, "remove read_list CB\n"); 191 dev_dbg(&dev->pdev->dev, "remove read_list CB\n");
192 list_for_each_entry_safe(pos, next, &dev->read_list.list, list) { 192 list_for_each_entry_safe(pos, next, &dev->read_list.list, list)
193 struct mei_cl *cl_temp; 193 if (mei_cl_cmp_id(cl, pos->cl))
194 cl_temp = (struct mei_cl *)pos->file_private;
195
196 if (mei_cl_cmp_id(cl, cl_temp))
197 return pos; 194 return pos;
198 }
199 return NULL; 195 return NULL;
200} 196}
201 197