Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21887b2f authored by Zhu Yi's avatar Zhu Yi Committed by John W. Linville
Browse files

[PATCH] mac80211: use do { } while (0) for multi-line macros



Use do { } while (0) for multi-line macros

Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
Signed-off-by: default avatarJiri Benc <jbenc@suse.cz>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 0e7088de
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -272,8 +272,10 @@ static void add_files(struct ieee80211_sub_if_data *sdata)
}

#define DEBUGFS_DEL(name, type)					\
	do {							\
		debugfs_remove(sdata->debugfs.type.name);	\
	sdata->debugfs.type.name = NULL;
		sdata->debugfs.type.name = NULL;		\
	} while (0)

static void del_sta_files(struct ieee80211_sub_if_data *sdata)
{