proc: remove useless d_is_dir() check
authorChristian Brauner <christian@brauner.io>
Thu, 27 Jun 2019 09:35:14 +0000 (11:35 +0200)
committerChristian Brauner <christian@brauner.io>
Thu, 27 Jun 2019 10:25:09 +0000 (12:25 +0200)
commit30d158b143b6575261ab610ae7b1b4f7fe3830b3
tree44f0182587378129a8e68e414b3d644012369cd0
parent6fd2fe494b17bf2dec37b610d23a43a72b16923a
proc: remove useless d_is_dir() check

Remove the d_is_dir() check from tgid_pidfd_to_pid().

It is pointless since you should never get &proc_tgid_base_operations
for f_op on a non-directory.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christian Brauner <christian@brauner.io>
fs/proc/base.c