mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
xfs: remove an extra cast in xfs_file_compat_ioctl
The ioctl argument is already available as an unsigned long in the p variable, so use that directly instead of casting back from p, which has the same value but was casted to a void pointer before. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
325506469b
commit
c1aa787691
|
|
@ -539,6 +539,6 @@ xfs_file_compat_ioctl(
|
|||
return xfs_compat_attrmulti_by_handle(filp, arg);
|
||||
default:
|
||||
/* try the native version */
|
||||
return xfs_file_ioctl(filp, cmd, (unsigned long)arg);
|
||||
return xfs_file_ioctl(filp, cmd, p);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user