nsfs: drop tautological ioctl() check

This check does absolutely nothing. So drop it.

Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Christian Brauner
2025-09-15 13:45:27 +02:00
parent 3c17001b21
commit 4d906371d1
+1 -1
View File
@@ -163,7 +163,7 @@ static bool nsfs_ioctl_valid(unsigned int cmd)
case NS_GET_TGID_FROM_PIDNS:
case NS_GET_PID_IN_PIDNS:
case NS_GET_TGID_IN_PIDNS:
return (_IOC_TYPE(cmd) == _IOC_TYPE(cmd));
return true;
}
/* Extensible ioctls require some extra handling. */