Skip to content

Commit

Permalink
cfg80211: prepare for const netdev->dev_addr
Browse files Browse the repository at this point in the history
netdev->dev_addr will be const soon.
All callers of wdev_address() can take const already.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20211019162816.1384077-2-kuba@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Jakub Kicinski authored and Johannes Berg committed Oct 21, 2021
1 parent de1352e commit 10de5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/cfg80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -5558,7 +5558,7 @@ struct wireless_dev {
unsigned long unprot_beacon_reported;
};

static inline u8 *wdev_address(struct wireless_dev *wdev)
static inline const u8 *wdev_address(struct wireless_dev *wdev)
{
if (wdev->netdev)
return wdev->netdev->dev_addr;
Expand Down

0 comments on commit 10de5a5

Please sign in to comment.