net: smsc911x: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sat, 23 May 2020 08:08:20 +0000 (16:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 May 2020 23:52:17 +0000 (16:52 -0700)
commit539d39ad0c61b35f69565a037d7586deaf6d6166
tree498b24188455fdda5ce346daec97b04669d096b8
parente3181e9a72e19bc556e5fba6c1217901e2bc20f4
net: smsc911x: Fix runtime PM imbalance on error

Remove runtime PM usage counter decrement when the
increment function has not been called to keep the
counter balanced.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smsc911x.c