diff options
| author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-12-01 10:24:58 +0000 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-12-05 11:16:19 -0500 |
| commit | b6e67d6d46cfec7f53326224949122e88f04a67f (patch) | |
| tree | d816ec7b668f9e21bf5f9cf5a8d20a76f4de027d | |
| parent | sfp: add documentation for kernel APIs (diff) | |
| download | linux-b6e67d6d46cfec7f53326224949122e88f04a67f.tar.gz linux-b6e67d6d46cfec7f53326224949122e88f04a67f.zip | |
sfp: fix sparse warning
drivers/net/phy/sfp-bus.c:298:13: warning: context imbalance in 'sfp_bus_release' - wrong count at exit
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/phy/sfp-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/sfp-bus.c b/drivers/net/phy/sfp-bus.c index 2b8c256156a2..a28859022ddb 100644 --- a/drivers/net/phy/sfp-bus.c +++ b/drivers/net/phy/sfp-bus.c @@ -291,7 +291,7 @@ static struct sfp_bus *sfp_bus_get(struct device_node *np) return found; } -static void sfp_bus_release(struct kref *kref) __releases(sfp_mutex) +static void sfp_bus_release(struct kref *kref) { struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); |
