OSDN Git Service

fs/proc/thread_self.c: code cleanup for proc_setup_thread_self()
authorChengguang Xu <cgxu519@gmx.com>
Tue, 5 Mar 2019 23:50:25 +0000 (15:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Mar 2019 05:07:21 +0000 (21:07 -0800)
commit45f68ab50234e825cdc7aee76a40d227d92eea14
tree5b1739ad13a68c6a074cd890b64c2f1c13519115
parent756ca74c7f656b6ed3cb60344845878226b658ae
fs/proc/thread_self.c: code cleanup for proc_setup_thread_self()

Remove unnecessary ERR_PTR()/PTR_ERR() cast in proc_setup_thread_self().

Link: http://lkml.kernel.org/r/20190124030150.8472-2-cgxu519@gmx.com
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/thread_self.c