mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
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: Gorskin Ilya <revent82@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
cc9b5222f2
commit
52acccb144
1 changed files with 10 additions and 10 deletions
|
@ -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 = {
|
||||||
|
@ -729,8 +729,8 @@ 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue