mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 13:29:17 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
642ac6c0dc
commit
94858fecca
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user