mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-17 19:34:12 +08:00
97a93b2b58
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: "David S. Miller" <davem@davemloft.net> Cc: Srikanth Jampala <Jampala.Srikanth@cavium.com> Cc: Yangtao Li <tiny.windzz@gmail.com> Cc: Gadam Sreerama <sgadam@cavium.com> Cc: Eric Biggers <ebiggers@google.com> Cc: linux-crypto@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
21 lines
459 B
C
21 lines
459 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef __NITROX_DEBUGFS_H
|
|
#define __NITROX_DEBUGFS_H
|
|
|
|
#include "nitrox_dev.h"
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
void nitrox_debugfs_init(struct nitrox_device *ndev);
|
|
void nitrox_debugfs_exit(struct nitrox_device *ndev);
|
|
#else
|
|
static inline void nitrox_debugfs_init(struct nitrox_device *ndev)
|
|
{
|
|
}
|
|
|
|
static inline void nitrox_debugfs_exit(struct nitrox_device *ndev)
|
|
{
|
|
}
|
|
#endif /* !CONFIG_DEBUG_FS */
|
|
|
|
#endif /* __NITROX_DEBUGFS_H */
|