diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-05-24 17:20:39 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-06-04 16:28:50 +0300 |
commit | 362379aad56fdc627a49e30d12c3ece900221898 (patch) | |
tree | a0825509e523cd1545d8cda682aae8efe718e7fe /lib/sg_split.c | |
parent | 5dbe23e8772299f227f1ac974752bc853e9814bb (diff) | |
download | linux-362379aad56fdc627a49e30d12c3ece900221898.tar.xz |
perf tools: No need to check if the argument to __get() function is NULL
Those functions always check if the argument is NULL before trying to
grab a reference count, and also will return the received object, so, to
make code more compact, no need to check for NULL.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Krister Johansen <kjlx@templeofstupid.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-i9wycjdxh0fwhryu55lmafks@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'lib/sg_split.c')
0 files changed, 0 insertions, 0 deletions