diff options
author | Amitoj Kaur Chawla | 2015-10-13 15:21:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-10-13 19:09:15 +0200 |
commit | 634ffdd9ef91b1a6252347276bed77d3d73b0b9a (patch) | |
tree | 661ac0e0fd4d7c5d0b4e3f91feeb9d5c07b30d40 /drivers | |
parent | staging: lustre: llite: Remove useless cast on void pointer (diff) | |
download | kernel-qcow2-linux-634ffdd9ef91b1a6252347276bed77d3d73b0b9a.tar.gz kernel-qcow2-linux-634ffdd9ef91b1a6252347276bed77d3d73b0b9a.tar.xz kernel-qcow2-linux-634ffdd9ef91b1a6252347276bed77d3d73b0b9a.zip |
staging: lustre: llite: Remove useless cast on void pointer
The semantic patch used to find this is:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/lustre/lustre/llite/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/llite/xattr.c b/drivers/staging/lustre/lustre/llite/xattr.c index e051dcc82efe..4b7eb33f7d01 100644 --- a/drivers/staging/lustre/lustre/llite/xattr.c +++ b/drivers/staging/lustre/lustre/llite/xattr.c @@ -519,7 +519,7 @@ ssize_t ll_getxattr(struct dentry *dentry, const char *name, goto out; } - lump = (struct lov_user_md *)buffer; + lump = buffer; memcpy(lump, lmm, lmmsize); /* do not return layout gen for getxattr otherwise it would * confuse tar --xattr by recognizing layout gen as stripe |