]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: Remove spin_lock call in stmmac_get_pauseparam()
authorEmil Goode <emilgoode@gmail.com>
Mon, 2 Jun 2014 09:30:50 +0000 (11:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 17:38:14 +0000 (10:38 -0700)
commitb889c5a17f4593723b2a9b98307db170115b901d
tree725cd927b3e977b4b6985dfb4610424ab1330685
parentee3176c0db096075d6f47bdaeea46583e506f429
stmmac: Remove spin_lock call in stmmac_get_pauseparam()

The following patch removed unnecessary spin_lock/unlock calls
in ethtool_ops callback functions. In the second and final version
of the patch one spin_lock call was left behind.

commit 9b832361cd619a8de91209f237160bde0235240d
Author: Yang Wei <Wei.Yang@windriver.com>
Date:   Sun May 25 09:53:44 2014 +0800

    net: driver: stmicro: Remove some useless the lock protection

This introduced the following sparse warning:

drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:424:1: warning:
context imbalance in 'stmmac_get_pauseparam' -
different lock contexts for basic block

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c