Fix checkpatch warnings
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>
Mon, 29 May 2017 15:36:38 +0000 (17:36 +0200)
committerAdrian-Ken Rueegsegger <ken@codelabs.ch>
Mon, 29 May 2017 15:48:21 +0000 (17:48 +0200)
net.c
writer.c

diff --git a/net.c b/net.c
index bd0ac68..70d7a5d 100644 (file)
--- a/net.c
+++ b/net.c
@@ -191,7 +191,7 @@ static u32 muennet_get_link(struct net_device *dev)
  * This structure defines the ethtool operations available on this networking
  * interface.
  */
-static struct ethtool_ops muennet_ethtool_ops = {
+static const struct ethtool_ops muennet_ethtool_ops = {
        .get_settings = muennet_get_settings,
        .get_drvinfo  = muennet_get_drvinfo,
        .get_link     = muennet_get_link,
index 05ef4b8..6bee71b 100644 (file)
--- a/writer.c
+++ b/writer.c
@@ -191,7 +191,7 @@ int muennet_xmit(struct sk_buff *skb, struct net_device *dev)
        spin_lock_irqsave(&dev_info->writer_lock, flags);
 
        if (dev_info->pmtu != NULL &&
-           1 <= skb->mark && skb->mark <= dev_info->pmtu_elements) {
+           skb->mark >= 1 && skb->mark <= dev_info->pmtu_elements) {
                u32 pmtu = dev_info->pmtu[skb->mark - 1];
 
                if (skb->len > pmtu) {