Skip to content

Commit b242271

Browse files
Zheng tanjmberg-intel
authored andcommitted
wifi: cfg80211: Remove the redundant wiphy_dev
There is no need to call wiphy_dev again.Simplifying the code makes it more readable. Signed-off-by: Zheng tan <[email protected]> Reviewed-by: Arend van Spriel <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent 691009b commit b242271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/wireless/ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void cfg80211_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
2323
else
2424
strscpy(info->fw_version, "N/A", sizeof(info->fw_version));
2525

26-
strscpy(info->bus_info, dev_name(wiphy_dev(wdev->wiphy)),
26+
strscpy(info->bus_info, dev_name(pdev),
2727
sizeof(info->bus_info));
2828
}
2929
EXPORT_SYMBOL(cfg80211_get_drvinfo);

0 commit comments

Comments
 (0)