aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-08-10 13:30:34 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-14 18:44:45 -0700
commit94858feccaada3f1810ff50dd21d33b1d4d95d56 (patch)
tree431f74c91efcd3fa78a6d3402790c9d3cb38aaf7 /drivers/staging
parentStaging: wilc1000: Remove null check before kfree (diff)
downloadlinux-dev-94858feccaada3f1810ff50dd21d33b1d4d95d56.tar.xz
linux-dev-94858feccaada3f1810ff50dd21d33b1d4d95d56.zip
Staging: lustre: libcfs: Remove unnecessary cast on void*
This patch does away with the cast on void * as it is unnecessary. Semantic patch used is as follows: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (void *) e ) Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/lustre/lustre/libcfs/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/libcfs/module.c b/drivers/staging/lustre/lustre/libcfs/module.c
index 1ab4232e0705..ef8f12693051 100644
--- a/drivers/staging/lustre/lustre/libcfs/module.c
+++ b/drivers/staging/lustre/lustre/libcfs/module.c
@@ -335,7 +335,7 @@ static int libcfs_ioctl(struct cfs_psdev_file *pfile, unsigned long cmd, void *a
return -ENOMEM;
/* 'cmd' and permissions get checked in our arch-specific caller */
- if (libcfs_ioctl_getdata(buf, buf + 800, (void *)arg)) {
+ if (libcfs_ioctl_getdata(buf, buf + 800, arg)) {
CERROR("PORTALS ioctl: data error\n");
err = -EINVAL;
goto out;