Commit 00b6fb2e authored by Vinay Sawal's avatar Vinay Sawal Committed by Greg Kroah-Hartman

Staging: bcm: Bcmnet: fixed checkpatch script reported issues

Fixed all issues reported by checkpatch script on this file.
Signed-off-by: default avatarVinay Sawal <vinaysawal@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8b68bb20
...@@ -8,7 +8,7 @@ static INT bcm_open(struct net_device *dev) ...@@ -8,7 +8,7 @@ static INT bcm_open(struct net_device *dev)
if (Adapter->fw_download_done == FALSE) { if (Adapter->fw_download_done == FALSE) {
pr_notice(PFX "%s: link up failed (download in progress)\n", pr_notice(PFX "%s: link up failed (download in progress)\n",
dev->name); dev->name);
return -EBUSY; return -EBUSY;
} }
...@@ -50,7 +50,7 @@ static u16 bcm_select_queue(struct net_device *dev, struct sk_buff *skb) ...@@ -50,7 +50,7 @@ static u16 bcm_select_queue(struct net_device *dev, struct sk_buff *skb)
* Description - This is the main transmit function for our virtual * Description - This is the main transmit function for our virtual
* interface(eth0). It handles the ARP packets. It * interface(eth0). It handles the ARP packets. It
* clones this packet and then Queue it to a suitable * clones this packet and then Queue it to a suitable
* Queue. Then calls the transmit_packet(). * Queue. Then calls the transmit_packet().
* *
* Parameter - skb - Pointer to the socket buffer structure * Parameter - skb - Pointer to the socket buffer structure
* dev - Pointer to the virtual net device structure * dev - Pointer to the virtual net device structure
...@@ -110,13 +110,13 @@ static netdev_tx_t bcm_transmit(struct sk_buff *skb, struct net_device *dev) ...@@ -110,13 +110,13 @@ static netdev_tx_t bcm_transmit(struct sk_buff *skb, struct net_device *dev)
Register other driver entry points with the kernel Register other driver entry points with the kernel
*/ */
static const struct net_device_ops bcmNetDevOps = { static const struct net_device_ops bcmNetDevOps = {
.ndo_open = bcm_open, .ndo_open = bcm_open,
.ndo_stop = bcm_close, .ndo_stop = bcm_close,
.ndo_start_xmit = bcm_transmit, .ndo_start_xmit = bcm_transmit,
.ndo_change_mtu = eth_change_mtu, .ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr, .ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr, .ndo_validate_addr = eth_validate_addr,
.ndo_select_queue = bcm_select_queue, .ndo_select_queue = bcm_select_queue,
}; };
static struct device_type wimax_type = { static struct device_type wimax_type = {
...@@ -138,7 +138,8 @@ static int bcm_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) ...@@ -138,7 +138,8 @@ static int bcm_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
return 0; return 0;
} }
static void bcm_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) static void bcm_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *info)
{ {
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev); PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
PS_INTERFACE_ADAPTER psIntfAdapter = Adapter->pvInterfaceAdapter; PS_INTERFACE_ADAPTER psIntfAdapter = Adapter->pvInterfaceAdapter;
...@@ -160,14 +161,14 @@ static u32 bcm_get_link(struct net_device *dev) ...@@ -160,14 +161,14 @@ static u32 bcm_get_link(struct net_device *dev)
return Adapter->LinkUpStatus; return Adapter->LinkUpStatus;
} }
static u32 bcm_get_msglevel (struct net_device *dev) static u32 bcm_get_msglevel(struct net_device *dev)
{ {
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev); PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
return Adapter->msg_enable; return Adapter->msg_enable;
} }
static void bcm_set_msglevel (struct net_device *dev, u32 level) static void bcm_set_msglevel(struct net_device *dev, u32 level)
{ {
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev); PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
...@@ -177,7 +178,7 @@ static void bcm_set_msglevel (struct net_device *dev, u32 level) ...@@ -177,7 +178,7 @@ static void bcm_set_msglevel (struct net_device *dev, u32 level)
static const struct ethtool_ops bcm_ethtool_ops = { static const struct ethtool_ops bcm_ethtool_ops = {
.get_settings = bcm_get_settings, .get_settings = bcm_get_settings,
.get_drvinfo = bcm_get_drvinfo, .get_drvinfo = bcm_get_drvinfo,
.get_link = bcm_get_link, .get_link = bcm_get_link,
.get_msglevel = bcm_get_msglevel, .get_msglevel = bcm_get_msglevel,
.set_msglevel = bcm_set_msglevel, .set_msglevel = bcm_set_msglevel,
}; };
...@@ -206,7 +207,7 @@ int register_networkdev(PMINI_ADAPTER Adapter) ...@@ -206,7 +207,7 @@ int register_networkdev(PMINI_ADAPTER Adapter)
if (result != STATUS_SUCCESS) { if (result != STATUS_SUCCESS) {
dev_err(&udev->dev, dev_err(&udev->dev,
PFX "Error in Reading the mac Address: %d", result); PFX "Error in Reading the mac Address: %d", result);
return -EIO; return -EIO;
} }
result = register_netdev(net); result = register_netdev(net);
...@@ -233,6 +234,6 @@ void unregister_networkdev(PMINI_ADAPTER Adapter) ...@@ -233,6 +234,6 @@ void unregister_networkdev(PMINI_ADAPTER Adapter)
if (netif_msg_probe(Adapter)) if (netif_msg_probe(Adapter))
dev_info(&udev->dev, PFX "%s: unregister usb-%s%s\n", dev_info(&udev->dev, PFX "%s: unregister usb-%s%s\n",
net->name, xdev->bus->bus_name, xdev->devpath); net->name, xdev->bus->bus_name, xdev->devpath);
unregister_netdev(Adapter->dev); unregister_netdev(Adapter->dev);
} }
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