]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: axis - hide an unused variable
authorArnd Bergmann <arnd@arndb.de>
Thu, 24 Aug 2017 22:19:54 +0000 (00:19 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Sep 2017 09:38:19 +0000 (17:38 +0800)
commitf8f500176f9fc83867893c26e3cce0e321c84837
tree38c32b599e0ead7b50cb278ad556a46141f3e127
parentf3b64cc40b42d9acd915c13f01c4ba466ab3ac70
crypto: axis - hide an unused variable

Without CONFIG_DEBUG_FS, we get a harmless warning:

drivers/crypto/axis/artpec6_crypto.c:352:23: error: 'dbgfs_root' defined but not used [-Werror=unused-variable]

This moves it into the #ifdef that hides the only user.

Fixes: c765d059f4f2 ("crypto: axis - add ARTPEC-6/7 crypto accelerator driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Lars Persson <larper@axis.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/axis/artpec6_crypto.c