diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-10-08 21:05:52 +0900 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-11-11 20:10:01 +0900 |
| commit | 9a066357184485784f782719093ff804d05b85db (patch) | |
| tree | 848b852c2fec4c2a648b3cdbb49ab391341541af /kernel/sysctl_binary.c | |
| parent | 39808e451fdf30d20099a92e5185a0acb028d826 (diff) | |
| download | linux-9a066357184485784f782719093ff804d05b85db.tar.gz linux-9a066357184485784f782719093ff804d05b85db.tar.bz2 linux-9a066357184485784f782719093ff804d05b85db.zip | |
kheaders: remove unneeded 'cat' command piped to 'head' / 'tail'
The 'head' and 'tail' commands can take a file path directly.
So, you do not need to run 'cat'.
cat kernel/kheaders.md5 | head -1
... is equivalent to:
head -1 kernel/kheaders.md5
and the latter saves forking one process.
While I was here, I replaced 'head -1' with 'head -n 1'.
I also replaced '==' with '=' since we do not have a good reason to
use the bashism.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
