qcacld-3.0: Replace hdd_adapter_t in wlan_hdd_rx_monitor.c

The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_adapter_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I620055afba0b50660053b7e37bd855fd505bc88f
CRs-Fixed: 2101043
This commit is contained in:
Jeff Johnson
2017-08-29 14:24:00 -07:00
committed by snandini
parent 7f803c6173
commit 215e34eab5

View File

@@ -45,7 +45,7 @@ void hdd_rx_monitor_callback(ol_osif_vdev_handle context,
qdf_nbuf_t rxbuf,
void *rx_status)
{
hdd_adapter_t *adapter;
struct hdd_adapter *adapter;
int rxstat;
struct sk_buff *skb;
struct sk_buff *skb_next;
@@ -54,7 +54,7 @@ void hdd_rx_monitor_callback(ol_osif_vdev_handle context,
qdf_assert(context);
qdf_assert(rxbuf);
adapter = (hdd_adapter_t *)context;
adapter = (struct hdd_adapter *)context;
if (WLAN_HDD_ADAPTER_MAGIC != adapter->magic) {
QDF_TRACE(QDF_MODULE_ID_HDD_DATA, QDF_TRACE_LEVEL_ERROR,
"invalid adapter %p", adapter);
@@ -131,7 +131,7 @@ int hdd_enable_monitor_mode(struct net_device *dev)
{
void *soc = cds_get_context(QDF_MODULE_ID_SOC);
void *pdev = cds_get_context(QDF_MODULE_ID_TXRX);
hdd_adapter_t *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
ENTER_DEV(dev);