Skip to content

Commit

Permalink
liquidio: silence a locking static checker warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed May 1, 2017
1 parent 66117a9 commit 77041e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77041e8

Please sign in to comment.