mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
e1000e: remove redundant might_sleep()
Now that mutex_lock() calls might_sleep() the driver doesn't have to here. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
de39b75233
commit
9b724613c9
@ -630,8 +630,6 @@ static s32 e1000_acquire_swflag_ich8lan(struct e1000_hw *hw)
|
|||||||
u32 extcnf_ctrl, timeout = PHY_CFG_TIMEOUT;
|
u32 extcnf_ctrl, timeout = PHY_CFG_TIMEOUT;
|
||||||
s32 ret_val = 0;
|
s32 ret_val = 0;
|
||||||
|
|
||||||
might_sleep();
|
|
||||||
|
|
||||||
mutex_lock(&swflag_mutex);
|
mutex_lock(&swflag_mutex);
|
||||||
|
|
||||||
while (timeout) {
|
while (timeout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user