Commit 52acccb1 authored by Gorskin Ilya's avatar Gorskin Ilya Committed by Greg Kroah-Hartman

Staging: rt2860: fix coding style issue in rt_main_dev.c

This is a patch to the rt_main_dev.c file that fixes up errors found by
the checkpatch.pl tool
Signed-off-by: default avatarGorskin Ilya <revent82@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cc9b5222
...@@ -439,13 +439,13 @@ int rt28xx_open(struct net_device *dev) ...@@ -439,13 +439,13 @@ int rt28xx_open(struct net_device *dev)
RTMPInitPCIeLinkCtrlValue(pAd); RTMPInitPCIeLinkCtrlValue(pAd);
#endif /* RTMP_MAC_PCI // */ #endif /* RTMP_MAC_PCI // */
return (retval); return retval;
err: err:
/*+++Add by shiang, move from rt28xx_init() to here. */ /*+++Add by shiang, move from rt28xx_init() to here. */
RtmpOSIRQRelease(net_dev); RtmpOSIRQRelease(net_dev);
/*---Add by shiang, move from rt28xx_init() to here. */ /*---Add by shiang, move from rt28xx_init() to here. */
return (-1); return -1;
} /* End of rt28xx_open */ } /* End of rt28xx_open */
static const struct net_device_ops rt2860_netdev_ops = { static const struct net_device_ops rt2860_netdev_ops = {
...@@ -534,7 +534,7 @@ int rt28xx_packet_xmit(struct sk_buff *skb) ...@@ -534,7 +534,7 @@ int rt28xx_packet_xmit(struct sk_buff *skb)
} }
RTMP_SET_PACKET_5VT(pPacket, 0); RTMP_SET_PACKET_5VT(pPacket, 0);
STASendPackets((void *)pAd, (void **)& pPacket, 1); STASendPackets((void *)pAd, (void **)&pPacket, 1);
status = NETDEV_TX_OK; status = NETDEV_TX_OK;
done: done:
...@@ -571,7 +571,7 @@ static int rt28xx_send_packets(IN struct sk_buff *skb_p, ...@@ -571,7 +571,7 @@ static int rt28xx_send_packets(IN struct sk_buff *skb_p,
return NETDEV_TX_OK; return NETDEV_TX_OK;
} }
NdisZeroMemory((u8 *)& skb_p->cb[CB_OFF], 15); NdisZeroMemory((u8 *)&skb_p->cb[CB_OFF], 15);
RTMP_SET_PACKET_NET_DEVICE_MBSSID(skb_p, MAIN_MBSSID); RTMP_SET_PACKET_NET_DEVICE_MBSSID(skb_p, MAIN_MBSSID);
return rt28xx_packet_xmit(skb_p); return rt28xx_packet_xmit(skb_p);
...@@ -628,13 +628,13 @@ void tbtt_tasklet(unsigned long data) ...@@ -628,13 +628,13 @@ void tbtt_tasklet(unsigned long data)
======================================================================== ========================================================================
Routine Description: Routine Description:
return ethernet statistics counter return ethernet statistics counter
Arguments: Arguments:
net_dev Pointer to net_device net_dev Pointer to net_device
Return Value: Return Value:
net_device_stats* net_device_stats*
Note: Note:
...@@ -728,9 +728,9 @@ int AdapterBlockAllocateMemory(void *handle, void ** ppAd) ...@@ -728,9 +728,9 @@ int AdapterBlockAllocateMemory(void *handle, void ** ppAd)
if (*ppAd) { if (*ppAd) {
NdisZeroMemory(*ppAd, sizeof(struct rt_rtmp_adapter)); NdisZeroMemory(*ppAd, sizeof(struct rt_rtmp_adapter));
((struct rt_rtmp_adapter *)* ppAd)->OS_Cookie = handle; ((struct rt_rtmp_adapter *)*ppAd)->OS_Cookie = handle;
return (NDIS_STATUS_SUCCESS); return NDIS_STATUS_SUCCESS;
} else { } else {
return (NDIS_STATUS_FAILURE); return NDIS_STATUS_FAILURE;
} }
} }
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