diff options
Diffstat (limited to 'net/mac80211/debugfs_netdev.c')
-rw-r--r-- | net/mac80211/debugfs_netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index cff0fb3578c9..deb3faf08337 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
@@ -841,7 +841,7 @@ void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata) | |||
841 | 841 | ||
842 | dir = sdata->vif.debugfs_dir; | 842 | dir = sdata->vif.debugfs_dir; |
843 | 843 | ||
844 | if (!dir) | 844 | if (IS_ERR_OR_NULL(dir)) |
845 | return; | 845 | return; |
846 | 846 | ||
847 | sprintf(buf, "netdev:%s", sdata->name); | 847 | sprintf(buf, "netdev:%s", sdata->name); |