Commit 88202eca authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman

staging: unisys: visornic: clean up parenthesis

Clean up unneeded parenthesis reported by checkpatch.pl.
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6224c320
...@@ -901,7 +901,7 @@ static int visornic_xmit(struct sk_buff *skb, struct net_device *netdev) ...@@ -901,7 +901,7 @@ static int visornic_xmit(struct sk_buff *skb, struct net_device *netdev)
return NETDEV_TX_OK; return NETDEV_TX_OK;
} }
if ((len < ETH_MIN_PACKET_SIZE) && if (len < ETH_MIN_PACKET_SIZE &&
((skb_end_pointer(skb) - skb->data) >= ETH_MIN_PACKET_SIZE)) { ((skb_end_pointer(skb) - skb->data) >= ETH_MIN_PACKET_SIZE)) {
/* pad the packet out to minimum size */ /* pad the packet out to minimum size */
padlen = ETH_MIN_PACKET_SIZE - len; padlen = ETH_MIN_PACKET_SIZE - len;
...@@ -1452,7 +1452,7 @@ static ssize_t info_debugfs_read(struct file *file, char __user *buf, ...@@ -1452,7 +1452,7 @@ static ssize_t info_debugfs_read(struct file *file, char __user *buf,
rcu_read_lock(); rcu_read_lock();
for_each_netdev_rcu(current->nsproxy->net_ns, dev) { for_each_netdev_rcu(current->nsproxy->net_ns, dev) {
/* Only consider netdevs that are visornic, and are open */ /* Only consider netdevs that are visornic, and are open */
if ((dev->netdev_ops != &visornic_dev_ops) || if (dev->netdev_ops != &visornic_dev_ops ||
(!netif_queue_stopped(dev))) (!netif_queue_stopped(dev)))
continue; continue;
...@@ -1682,7 +1682,7 @@ static void service_resp_queue(struct uiscmdrsp *cmdrsp, ...@@ -1682,7 +1682,7 @@ static void service_resp_queue(struct uiscmdrsp *cmdrsp,
/* only call queue wake if we stopped it */ /* only call queue wake if we stopped it */
netdev = ((struct sk_buff *)cmdrsp->net.buf)->dev; netdev = ((struct sk_buff *)cmdrsp->net.buf)->dev;
/* ASSERT netdev == vnicinfo->netdev; */ /* ASSERT netdev == vnicinfo->netdev; */
if ((netdev == devdata->netdev) && if (netdev == devdata->netdev &&
netif_queue_stopped(netdev)) { netif_queue_stopped(netdev)) {
/* check if we have crossed the lower watermark /* check if we have crossed the lower watermark
* for netif_wake_queue() * for netif_wake_queue()
......
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