aboutsummaryrefslogtreecommitdiff
path: root/crypto/algapi.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2017-06-20 12:19:16 -0300
committerArnaldo Carvalho de Melo <[email protected]>2017-06-20 12:19:16 -0300
commit44b58e06e8e3872b6741e5aee59a7a93dfe3834a (patch)
treeb3b30db9baa598e8b0444e8b2984a86b9f5d8ea5 /crypto/algapi.c
parent2157f6ee18ce5224eea2b27582368b60d940bef6 (diff)
perf tools: Do parameter validation earlier on fetch_kernel_version()
While trying to reduce util.[ch] I noticed that fetch_kernel_version() and fetch_ubuntu_kernel_version() do lots of operations only to check if they are needed, i.e. it checks if the pointer where to return the kernel version is NULL only after obtaining the kernel version from /proc/version_signature or by parsing the results from uname(). Do it earlier not to confuse people reading this code in the future :-) Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'crypto/algapi.c')
0 files changed, 0 insertions, 0 deletions