]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nsfs: drop tautological ioctl() check
authorChristian Brauner <brauner@kernel.org>
Fri, 12 Sep 2025 11:52:25 +0000 (13:52 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 15 Sep 2025 11:45:27 +0000 (13:45 +0200)
This check does absolutely nothing. So drop it.

Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/nsfs.c

index 59aa801347a7de7fc2ff4d04516381ecf1dfd2aa..ce51041bb624353aca27867f6f0c2b04219c29fe 100644 (file)
--- a/fs/nsfs.c
+++ b/fs/nsfs.c
@@ -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. */