diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2018-04-22 18:23:52 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2018-04-24 19:50:08 -0700 |
commit | a85e126abf944884d5b3eba86ec7d541e8327256 (patch) | |
tree | ef5e3a7ca4d1d22c5b9de0ffe44c79589ae04550 /include/linux/rslib.h | |
parent | 689c6efdfb58d7b21c375f515349e4091e08100b (diff) | |
download | blackbird-obmc-linux-a85e126abf944884d5b3eba86ec7d541e8327256.tar.gz blackbird-obmc-linux-a85e126abf944884d5b3eba86ec7d541e8327256.zip |
rslib: Simplify error path
The four error path labels in rs_init() can be reduced to one by allocating
the struct with kzalloc so the pointers in the struct are NULL and can be
unconditionally handed in to kfree() because they either point to an
allocation or are NULL.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/rslib.h')
0 files changed, 0 insertions, 0 deletions