diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2019-05-15 00:42:37 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-15 04:52:49 +0200 |
commit | 6c4e121fda519e0da5c6755a60fdef8cd39634ae (patch) | |
tree | 6e3ac0f2620159d6fdc1d117400b71bf16b11659 /.mailmap | |
parent | kernel/latencytop.c: rename clear_all_latency_tracing to clear_tsk_latency_tr... (diff) | |
download | linux-6c4e121fda519e0da5c6755a60fdef8cd39634ae.tar.xz linux-6c4e121fda519e0da5c6755a60fdef8cd39634ae.zip |
kernel/user.c: clean up some leftover code
The out_unlock label is misleading; no unlocking happens after it, so
just return NULL directly.
Also, nothing between the kmem_cache_zalloc() that creates new and the
two key_put() can initialize new->uid_keyring or new->session_keyring,
so those calls are no-ops.
Link: http://lkml.kernel.org/r/20190424200404.9114-1-linux@rasmusvillemoes.dk
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions