Commit ea5cdccc authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by David S. Miller

net/pasemi: Fix missing coding style

Fix missing () & { }
Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Acked-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 48412a7e
...@@ -579,9 +579,10 @@ static void pasemi_mac_free_tx_resources(struct pasemi_mac *mac) ...@@ -579,9 +579,10 @@ static void pasemi_mac_free_tx_resources(struct pasemi_mac *mac)
(TX_RING_SIZE-1)].dma; (TX_RING_SIZE-1)].dma;
freed = pasemi_mac_unmap_tx_skb(mac, nfrags, freed = pasemi_mac_unmap_tx_skb(mac, nfrags,
info->skb, dmas); info->skb, dmas);
} else } else {
freed = 2; freed = 2;
} }
}
kfree(txring->ring_info); kfree(txring->ring_info);
pasemi_dma_free_chan(&txring->chan); pasemi_dma_free_chan(&txring->chan);
...@@ -808,8 +809,9 @@ static int pasemi_mac_clean_rx(struct pasemi_mac_rxring *rx, ...@@ -808,8 +809,9 @@ static int pasemi_mac_clean_rx(struct pasemi_mac_rxring *rx,
skb->ip_summed = CHECKSUM_UNNECESSARY; skb->ip_summed = CHECKSUM_UNNECESSARY;
skb->csum = (macrx & XCT_MACRX_CSUM_M) >> skb->csum = (macrx & XCT_MACRX_CSUM_M) >>
XCT_MACRX_CSUM_S; XCT_MACRX_CSUM_S;
} else } else {
skb_checksum_none_assert(skb); skb_checksum_none_assert(skb);
}
packets++; packets++;
tot_bytes += len; tot_bytes += len;
...@@ -1829,10 +1831,11 @@ pasemi_mac_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1829,10 +1831,11 @@ pasemi_mac_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
dev_err(&mac->pdev->dev, "register_netdev failed with error %d\n", dev_err(&mac->pdev->dev, "register_netdev failed with error %d\n",
err); err);
goto out; goto out;
} else if netif_msg_probe(mac) } else if (netif_msg_probe(mac)) {
printk(KERN_INFO "%s: PA Semi %s: intf %d, hw addr %pM\n", printk(KERN_INFO "%s: PA Semi %s: intf %d, hw addr %pM\n",
dev->name, mac->type == MAC_TYPE_GMAC ? "GMAC" : "XAUI", dev->name, mac->type == MAC_TYPE_GMAC ? "GMAC" : "XAUI",
mac->dma_if, dev->dev_addr); mac->dma_if, dev->dev_addr);
}
return err; return err;
......
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