Commit c5a3b1db authored by Jil Rouceau's avatar Jil Rouceau Committed by Greg Kroah-Hartman

staging: qlge: qlge_main.c: fixed spaces coding style issues

Fixed the missing spaces before and after binary operators.
Signed-off-by: default avatarJil Rouceau <jilrouceau@gmail.com>
Link: https://lore.kernel.org/r/20200601104416.102566-1-jilrouceau@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6655a352
...@@ -687,7 +687,7 @@ static int ql_get_8000_flash_params(struct ql_adapter *qdev) ...@@ -687,7 +687,7 @@ static int ql_get_8000_flash_params(struct ql_adapter *qdev)
size = sizeof(struct flash_params_8000) / sizeof(u32); size = sizeof(struct flash_params_8000) / sizeof(u32);
for (i = 0; i < size; i++, p++) { for (i = 0; i < size; i++, p++) {
status = ql_read_flash_word(qdev, i+offset, p); status = ql_read_flash_word(qdev, i + offset, p);
if (status) { if (status) {
netif_err(qdev, ifup, qdev->ndev, netif_err(qdev, ifup, qdev->ndev,
"Error reading flash.\n"); "Error reading flash.\n");
...@@ -750,7 +750,7 @@ static int ql_get_8012_flash_params(struct ql_adapter *qdev) ...@@ -750,7 +750,7 @@ static int ql_get_8012_flash_params(struct ql_adapter *qdev)
return -ETIMEDOUT; return -ETIMEDOUT;
for (i = 0; i < size; i++, p++) { for (i = 0; i < size; i++, p++) {
status = ql_read_flash_word(qdev, i+offset, p); status = ql_read_flash_word(qdev, i + offset, p);
if (status) { if (status) {
netif_err(qdev, ifup, qdev->ndev, netif_err(qdev, ifup, qdev->ndev,
"Error reading flash.\n"); "Error reading flash.\n");
...@@ -1528,7 +1528,7 @@ static void ql_process_mac_rx_page(struct ql_adapter *qdev, ...@@ -1528,7 +1528,7 @@ static void ql_process_mac_rx_page(struct ql_adapter *qdev,
struct iphdr *iph = struct iphdr *iph =
(struct iphdr *)((u8 *)addr + hlen); (struct iphdr *)((u8 *)addr + hlen);
if (!(iph->frag_off & if (!(iph->frag_off &
htons(IP_MF|IP_OFFSET))) { htons(IP_MF | IP_OFFSET))) {
skb->ip_summed = CHECKSUM_UNNECESSARY; skb->ip_summed = CHECKSUM_UNNECESSARY;
netif_printk(qdev, rx_status, KERN_DEBUG, netif_printk(qdev, rx_status, KERN_DEBUG,
qdev->ndev, qdev->ndev,
...@@ -1635,7 +1635,7 @@ static void ql_process_mac_rx_skb(struct ql_adapter *qdev, ...@@ -1635,7 +1635,7 @@ static void ql_process_mac_rx_skb(struct ql_adapter *qdev,
struct iphdr *iph = (struct iphdr *)skb->data; struct iphdr *iph = (struct iphdr *)skb->data;
if (!(iph->frag_off & if (!(iph->frag_off &
htons(IP_MF|IP_OFFSET))) { htons(IP_MF | IP_OFFSET))) {
skb->ip_summed = CHECKSUM_UNNECESSARY; skb->ip_summed = CHECKSUM_UNNECESSARY;
netif_printk(qdev, rx_status, KERN_DEBUG, netif_printk(qdev, rx_status, KERN_DEBUG,
qdev->ndev, qdev->ndev,
...@@ -1924,7 +1924,7 @@ static void ql_process_mac_split_rx_intr(struct ql_adapter *qdev, ...@@ -1924,7 +1924,7 @@ static void ql_process_mac_split_rx_intr(struct ql_adapter *qdev,
struct iphdr *iph = (struct iphdr *)skb->data; struct iphdr *iph = (struct iphdr *)skb->data;
if (!(iph->frag_off & if (!(iph->frag_off &
htons(IP_MF|IP_OFFSET))) { htons(IP_MF | IP_OFFSET))) {
skb->ip_summed = CHECKSUM_UNNECESSARY; skb->ip_summed = CHECKSUM_UNNECESSARY;
netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev,
"TCP checksum done!\n"); "TCP checksum done!\n");
...@@ -4547,7 +4547,7 @@ static void ql_timer(struct timer_list *t) ...@@ -4547,7 +4547,7 @@ static void ql_timer(struct timer_list *t)
return; return;
} }
mod_timer(&qdev->timer, jiffies + (5*HZ)); mod_timer(&qdev->timer, jiffies + (5 * HZ));
} }
static int qlge_probe(struct pci_dev *pdev, static int qlge_probe(struct pci_dev *pdev,
...@@ -4619,7 +4619,7 @@ static int qlge_probe(struct pci_dev *pdev, ...@@ -4619,7 +4619,7 @@ static int qlge_probe(struct pci_dev *pdev,
* the bus goes dead * the bus goes dead
*/ */
timer_setup(&qdev->timer, ql_timer, TIMER_DEFERRABLE); timer_setup(&qdev->timer, ql_timer, TIMER_DEFERRABLE);
mod_timer(&qdev->timer, jiffies + (5*HZ)); mod_timer(&qdev->timer, jiffies + (5 * HZ));
ql_link_off(qdev); ql_link_off(qdev);
ql_display_dev_info(ndev); ql_display_dev_info(ndev);
atomic_set(&qdev->lb_count, 0); atomic_set(&qdev->lb_count, 0);
...@@ -4753,7 +4753,7 @@ static void qlge_io_resume(struct pci_dev *pdev) ...@@ -4753,7 +4753,7 @@ static void qlge_io_resume(struct pci_dev *pdev)
netif_err(qdev, ifup, qdev->ndev, netif_err(qdev, ifup, qdev->ndev,
"Device was not running prior to EEH.\n"); "Device was not running prior to EEH.\n");
} }
mod_timer(&qdev->timer, jiffies + (5*HZ)); mod_timer(&qdev->timer, jiffies + (5 * HZ));
netif_device_attach(ndev); netif_device_attach(ndev);
} }
...@@ -4815,7 +4815,7 @@ static int qlge_resume(struct pci_dev *pdev) ...@@ -4815,7 +4815,7 @@ static int qlge_resume(struct pci_dev *pdev)
return err; return err;
} }
mod_timer(&qdev->timer, jiffies + (5*HZ)); mod_timer(&qdev->timer, jiffies + (5 * HZ));
netif_device_attach(ndev); netif_device_attach(ndev);
return 0; return 0;
......
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