Commit 706321a5 authored by Martin Kaiser's avatar Martin Kaiser Committed by Greg Kroah-Hartman
Browse files

staging: rtl8188eu: remove padapter from struct mlme_ext_priv



struct mlme_ext_priv is an element of struct adapter. Use container_of
to get a pointer to the enclosing struct.

Signed-off-by: default avatarMartin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210505202622.11087-6-martin@kaiser.cx


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 24aa9cac
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -4014,8 +4014,6 @@ int init_mlme_ext_priv(struct adapter *padapter)
	struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
	struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;

	pmlmeext->padapter = padapter;

	init_mlme_ext_priv_value(padapter);
	pmlmeinfo->accept_addba_req = pregistrypriv->accept_addba_req;

@@ -4038,7 +4036,7 @@ int init_mlme_ext_priv(struct adapter *padapter)

void free_mlme_ext_priv(struct mlme_ext_priv *pmlmeext)
{
	struct adapter *padapter = pmlmeext->padapter;
	struct adapter *padapter = container_of(pmlmeext, struct adapter, mlmeextpriv);

	if (!padapter)
		return;
+0 −1
Original line number Diff line number Diff line
@@ -383,7 +383,6 @@ struct p2p_oper_class_map {
};

struct mlme_ext_priv {
	struct adapter	*padapter;
	u8	mlmeext_init;
	atomic_t	event_seq;
	u16	mgnt_seq;