summaryrefslogtreecommitdiffstats
path: root/mm/slab_common.c
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2017-04-27 11:25:14 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-28 11:45:49 +0200
commit8cd1dbe1db97ad74c5265e09c3490eeb7986f623 (patch)
treeedee85a9f4ce568501fc800698f28e493038fdda /mm/slab_common.c
parent69f3fecc49cabaadf4839dda4227427fc15b4c7e (diff)
downloadlinux-8cd1dbe1db97ad74c5265e09c3490eeb7986f623.tar.gz
linux-8cd1dbe1db97ad74c5265e09c3490eeb7986f623.tar.bz2
linux-8cd1dbe1db97ad74c5265e09c3490eeb7986f623.zip
staging: ks7010: move skb null check near allocation
Currently, after allocating an sk_buff, driver fills the sk_buff within code block guarded by a NULL check on the sk_buff. If a NULL check is done immediately after the allocation, and code returns on error, then the subsequent code need not be guarded and the level of indentation may be reduced. This aids the readability of the code and makes explicit the error path. Check for NULL directly after allocating the sk_buff, return if allocation fails. Reduce indentation of subsequent code. Do not change the program logic. Signed-off-by: Tobin C. Harding <me@tobin.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/slab_common.c')
0 files changed, 0 insertions, 0 deletions