diff options
author | Zhu Yi <yi.zhu@intel.com> | 2007-07-27 15:43:23 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-08-06 15:38:48 -0400 |
commit | 21887b2f1826876f78a2d8e8e89f52993e7d76db (patch) | |
tree | c306303e9ef8fc6d8f11fb097894bed86376da08 | |
parent | 0e7088de6ce5a64d9bb7b11eba4ee98ca5b654e8 (diff) | |
download | linux-3.10-21887b2f1826876f78a2d8e8e89f52993e7d76db.tar.gz linux-3.10-21887b2f1826876f78a2d8e8e89f52993e7d76db.tar.bz2 linux-3.10-21887b2f1826876f78a2d8e8e89f52993e7d76db.zip |
[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>
-rw-r--r-- | net/mac80211/debugfs_netdev.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index 799a9208c4b..095be91829c 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c @@ -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) { |