summaryrefslogtreecommitdiff
path: root/lib/reed_solomon/encode_rs.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2018-04-22 18:23:52 +0200
committerKees Cook <keescook@chromium.org>2018-04-24 19:50:08 -0700
commita85e126abf944884d5b3eba86ec7d541e8327256 (patch)
treeef5e3a7ca4d1d22c5b9de0ffe44c79589ae04550 /lib/reed_solomon/encode_rs.c
parent689c6efdfb58d7b21c375f515349e4091e08100b (diff)
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 'lib/reed_solomon/encode_rs.c')
0 files changed, 0 insertions, 0 deletions