summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorZhu Yi <yi.zhu@intel.com>2007-07-27 15:43:23 +0200
committerJohn W. Linville <linville@tuxdriver.com>2007-08-06 21:38:48 +0200
commit21887b2f1826876f78a2d8e8e89f52993e7d76db (patch)
treec306303e9ef8fc6d8f11fb097894bed86376da08 /net
parent[PATCH] mac80211: missing dev_put in ieee80211_master_start_xmit (diff)
downloadlinux-21887b2f1826876f78a2d8e8e89f52993e7d76db.tar.xz
linux-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>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/debugfs_netdev.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c
index 799a9208c4b4..095be91829ca 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)
{