liquidio: silence a locking static checker warning
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Apr 2017 12:57:15 +0000 (15:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 02:41:07 +0000 (22:41 -0400)
Presumably we never hit this return, but static checkers complain that
we need to unlock so we may as well fix that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c

index 201b987..5cca73b 100644 (file)
@@ -313,6 +313,7 @@ int octeon_mbox_process_message(struct octeon_mbox *mbox)
                return 0;
        }
 
+       spin_unlock_irqrestore(&mbox->lock, flags);
        WARN_ON(1);
 
        return 0;