mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
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>
This commit is contained in:
parent
3e127cbb06
commit
634ffdd9ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user