mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
3fa21e07e6
This patch removes from net/ (but not any netfilter files) all the unnecessary return; statements that precede the last closing brace of void functions. It does not remove the returns that are immediately preceded by a label as gcc doesn't like that. Done via: $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \ xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }' Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
14 lines
345 B
C
14 lines
345 B
C
#ifndef __MAC80211_DEBUGFS_H
|
|
#define __MAC80211_DEBUGFS_H
|
|
|
|
#ifdef CONFIG_MAC80211_DEBUGFS
|
|
extern void debugfs_hw_add(struct ieee80211_local *local);
|
|
extern int mac80211_open_file_generic(struct inode *inode, struct file *file);
|
|
#else
|
|
static inline void debugfs_hw_add(struct ieee80211_local *local)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MAC80211_DEBUGFS_H */
|