Skip to content

Commit

Permalink
[PATCH] mac80211: use do { } while (0) for multi-line macros
Browse files Browse the repository at this point in the history
Use do { } while (0) for multi-line macros

Signed-off-by: Zhu Yi <[email protected]>
Signed-off-by: Jiri Benc <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
Zhu Yi authored and linvjw committed Aug 6, 2007
1 parent 0e7088d commit 21887b2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions net/mac80211/debugfs_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 21887b2

Please sign in to comment.