summaryrefslogtreecommitdiff
path: root/drivers/staging/lustre/lustre/obdclass/obd_mount.c
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-10-15 00:58:21 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 22:26:35 -0700
commitab12717607e363124da88d64eeb3fedce9674dfe (patch)
tree9d60f3b374b1b69451f78b89be06cf7dd2514842 /drivers/staging/lustre/lustre/obdclass/obd_mount.c
parentcca3241628f02fe68ce22a71bbc555d16915e6a8 (diff)
Staging: lustre: obdclass: Remove unnecessary cast on void pointer
void pointers do not need to be cast to other pointer types. Semantic patch used to find this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/obdclass/obd_mount.c')
-rw-r--r--drivers/staging/lustre/lustre/obdclass/obd_mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/obd_mount.c b/drivers/staging/lustre/lustre/obdclass/obd_mount.c
index 0d324cc28243..149c83813583 100644
--- a/drivers/staging/lustre/lustre/obdclass/obd_mount.c
+++ b/drivers/staging/lustre/lustre/obdclass/obd_mount.c
@@ -1100,7 +1100,7 @@ static int lustre_fill_super(struct super_block *sb, void *data, int silent)
obd_zombie_barrier();
/* Figure out the lmd from the mount options */
- if (lmd_parse((char *)(lmd2->lmd2_data), lmd)) {
+ if (lmd_parse((lmd2->lmd2_data), lmd)) {
lustre_put_lsi(sb);
rc = -EINVAL;
goto out;