treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / wireless / quantenna / qtnfmac / debug.h
blob61b45536b83a1a2f7280eedbce0f832ee00aaab7
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */
4 #ifndef _QTN_FMAC_DEBUG_H_
5 #define _QTN_FMAC_DEBUG_H_
7 #include <linux/debugfs.h>
9 #include "core.h"
10 #include "bus.h"
12 #ifdef CONFIG_DEBUG_FS
14 void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name);
15 void qtnf_debugfs_remove(struct qtnf_bus *bus);
16 void qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
17 int (*fn)(struct seq_file *seq, void *data));
19 #else
21 static inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name)
25 static inline void qtnf_debugfs_remove(struct qtnf_bus *bus)
29 static inline void
30 qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
31 int (*fn)(struct seq_file *seq, void *data))
35 #endif /* CONFIG_DEBUG_FS */
37 #endif /* _QTN_FMAC_DEBUG_H_ */