]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: make lookup() use more consistent [coverity scan]
authorKarel Zak <kzak@redhat.com>
Tue, 28 May 2019 09:58:51 +0000 (11:58 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 28 May 2019 09:58:51 +0000 (11:58 +0200)
commitfe2e38f3b15f397aa1edc768237e9408c8a688f9
tree5b45c69ff208e6d55e800bb5d1b9504b4f4246a6
parent2c864ba8fcf50246920d09feaa2b02f3a3dfd52c
lscpu: make lookup() use more consistent [coverity scan]

We usually check lookup() return value. Let's do it in this case too.
It seems static analyzers will be happy with consistent code.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c