Skip to content

Commit

Permalink
sfp: fix sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and David S. Miller committed Dec 5, 2017
1 parent 0a6fcd3 commit b6e67d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/sfp-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b6e67d6

Please sign in to comment.