mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
[PATCH] mac80211: use do { } while (0) for multi-line macros
Use do { } while (0) for multi-line macros Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
0e7088de6c
commit
21887b2f18
1 changed files with 5 additions and 3 deletions
|
@ -271,9 +271,11 @@ static void add_files(struct ieee80211_sub_if_data *sdata)
|
|||
}
|
||||
}
|
||||
|
||||
#define DEBUGFS_DEL(name, type)\
|
||||
debugfs_remove(sdata->debugfs.type.name);\
|
||||
sdata->debugfs.type.name = NULL;
|
||||
#define DEBUGFS_DEL(name, type) \
|
||||
do { \
|
||||
debugfs_remove(sdata->debugfs.type.name); \
|
||||
sdata->debugfs.type.name = NULL; \
|
||||
} while (0)
|
||||
|
||||
static void del_sta_files(struct ieee80211_sub_if_data *sdata)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue