]> git.baikalelectronics.ru Git - kernel.git/commit
params: suppress unused variable error, warn once just in case code changes.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 16 Jun 2015 20:46:52 +0000 (06:16 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 23 Jun 2015 05:57:37 +0000 (15:27 +0930)
commit3907414ef31a62821802cf6867c27707730acf5c
treeca68b882f14d82c132395e165c303782ed32e220
parent5264b46a32fe5e0f24e2d9b2eeb2ec3f1c3af82e
params: suppress unused variable error, warn once just in case code changes.

It shouldn't fail due to OOM (it's boot time), and already warns if we
get two identical names.  But you never know what the future holds, and
WARN_ON_ONCE() keeps gcc happy with minimal code.

Reported-by: Louis Langholtz <lou_langholtz@me.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/params.c