epoll: simplify ep_alloc()
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 26 Jul 2023 03:21:35 +0000 (11:21 +0800)
committerChristian Brauner <brauner@kernel.org>
Wed, 26 Jul 2023 12:56:07 +0000 (14:56 +0200)
commit05f26f86f4a1f31d5ed2015ac1c89ea9da1d2bb7
tree45fe87db01c99be821bf9fe2c8d3764a63d119f2
parent0d5a4f8f775ff990142cdc810a84eae078589d27
epoll: simplify ep_alloc()

The get_current_user() does not fail, and moving it after kzalloc() can
simplify the code a bit.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Message-Id: <20230726032135.933-1-thunder.leizhen@huaweicloud.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/eventpoll.c