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:
Christoph Hellwig 2026-07-29 15:03:15 +02:00 committed by Carlos Maiolino
parent 325506469b
commit c1aa787691

View File

@ -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);
}
}