[PATCH v2 02/33] nsfs: drop tautological ioctl() check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This check does absolutely nothing. So drop it.

Signed-off-by: Christian Brauner <brauner@xxxxxxxxxx>
---
 fs/nsfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nsfs.c b/fs/nsfs.c
index 59aa801347a7..ce51041bb624 100644
--- 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. */

-- 
2.47.3





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux