Commit cfdff814 authored by Phillip Potter's avatar Phillip Potter Committed by Greg Kroah-Hartman

staging: rtl8188eu: remove converted netdev_dbg calls from core/rtw_sta_mgt.c

Remove all previously converted netdev_dbg calls from core/rtw_sta_mgt.c,
as these were originally DBG_88E macro calls, and therefore of dubious
necessity to begin with.
Signed-off-by: default avatarPhillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210615001507.1171-27-phil@philpotter.co.ukSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7e5bcf11
...@@ -113,21 +113,12 @@ u32 _rtw_init_sta_priv(struct sta_priv *pstapriv) ...@@ -113,21 +113,12 @@ u32 _rtw_init_sta_priv(struct sta_priv *pstapriv)
inline int rtw_stainfo_offset(struct sta_priv *stapriv, struct sta_info *sta) inline int rtw_stainfo_offset(struct sta_priv *stapriv, struct sta_info *sta)
{ {
int offset = (((u8 *)sta) - stapriv->pstainfo_buf) / sizeof(struct sta_info); int offset = (((u8 *)sta) - stapriv->pstainfo_buf) / sizeof(struct sta_info);
struct net_device *pnetdev = stapriv->padapter->pnetdev;
if (!stainfo_offset_valid(offset))
netdev_dbg(pnetdev, "invalid offset(%d), out of range!!!\n", offset);
return offset; return offset;
} }
inline struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int offset) inline struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int offset)
{ {
struct net_device *pnetdev = stapriv->padapter->pnetdev;
if (!stainfo_offset_valid(offset))
netdev_dbg(pnetdev, "invalid offset(%d), out of range!!!\n", offset);
return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info)); return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment