Unverified Commit 4d906371 authored by Christian Brauner's avatar Christian Brauner
Browse files

nsfs: drop tautological ioctl() check



This check does absolutely nothing. So drop it.

Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 3c17001b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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. */