devpts: simplify two-level sysctl registration for pty_kern_table
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 10 Mar 2023 23:12:03 +0000 (15:12 -0800)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Mon, 13 Mar 2023 11:36:34 +0000 (12:36 +0100)
commit3e27877ac565807135209933e0894d8c522cc520
tree87b49c0e1e11c1a06322573472400f38abee0b1f
parent7059a9aa4b6b8c6daf257a3978a4d8c476c29a96
devpts: simplify two-level sysctl registration for pty_kern_table

There is no need to declare two tables to just create directories,
this can be easily be done with a prefix path with register_sysctl().

Simplify this registration.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
fs/devpts/inode.c