Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nsfs: drop tautological ioctl() check

This check does absolutely nothing. So drop it.

Signed-off-by: Christian Brauner <brauner@kernel.org>

+1 -1
+1 -1
fs/nsfs.c
··· 163 163 case NS_GET_TGID_FROM_PIDNS: 164 164 case NS_GET_PID_IN_PIDNS: 165 165 case NS_GET_TGID_IN_PIDNS: 166 - return (_IOC_TYPE(cmd) == _IOC_TYPE(cmd)); 166 + return true; 167 167 } 168 168 169 169 /* Extensible ioctls require some extra handling. */