]> git.baikalelectronics.ru Git - kernel.git/commit
lib/decompressors: remove set but not used variabled 'level'
authorYu Kuai <yukuai3@huawei.com>
Thu, 1 Jul 2021 01:57:06 +0000 (18:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Jul 2021 18:06:06 +0000 (11:06 -0700)
commit6b855fdc48f2f322e62b4ce695f2ef7533e8d2dc
tree14b5c3135227e9f95b08f809d119be46f4884bf4
parentc1877eb4a2e42446af17a838c5917c65f156d5fd
lib/decompressors: remove set but not used variabled 'level'

Fixes gcc '-Wunused-but-set-variable' warning:

lib/decompress_unlzo.c:46:5: warning: variable `level' set but
not used [-Wunused-but-set-variable]

It is never used and so can be removed.

[akpm@linux-foundation.org: warning: value computed is not used]

Link: https://lkml.kernel.org/r/20210514062050.3532344-1-yukuai3@huawei.com
Fixes: f931b0b8eeb6 ("lib: add support for LZO-compressed kernels")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/decompress_unlzo.c