diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-06-26 13:28:52 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-06-26 18:33:44 -0400 |
commit | 0a9597b70c76234babf7650437578abaeb9259e1 (patch) | |
tree | 91d756d82d3308f3435175db79b7c6a2fc5fa559 /drivers/hid/hid-roccat-lua.c | |
parent | e2c76a8bad2fbeafcfb80aa749212b4b16e60257 (diff) |
HID: roccat: Drop cast
This patch removes the cast on data of type void* as it is not needed.
The following Coccinelle semantic patch was used for making the change:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-roccat-lua.c')
-rw-r--r-- | drivers/hid/hid-roccat-lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-roccat-lua.c b/drivers/hid/hid-roccat-lua.c index 6adc0fa08d96..65e2e76bf2fe 100644 --- a/drivers/hid/hid-roccat-lua.c +++ b/drivers/hid/hid-roccat-lua.c | |||
@@ -61,7 +61,7 @@ static ssize_t lua_sysfs_write(struct file *fp, struct kobject *kobj, | |||
61 | return -EINVAL; | 61 | return -EINVAL; |
62 | 62 | ||
63 | mutex_lock(&lua->lua_lock); | 63 | mutex_lock(&lua->lua_lock); |
64 | retval = roccat_common2_send(usb_dev, command, (void *)buf, real_size); | 64 | retval = roccat_common2_send(usb_dev, command, buf, real_size); |
65 | mutex_unlock(&lua->lua_lock); | 65 | mutex_unlock(&lua->lua_lock); |
66 | 66 | ||
67 | return retval ? retval : real_size; | 67 | return retval ? retval : real_size; |