projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a98d05
)
tg3: sparse cleanup
author
Eric Dumazet
<dada1@cosmosbay.com>
Fri, 25 Apr 2008 06:33:06 +0000
(23:33 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 25 Apr 2008 06:33:06 +0000
(23:33 -0700)
Fix the following sparse warning :
drivers/net/tg3.c:4025:3: warning: context imbalance in 'tg3_restart_hw'
- unexpected unlock
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tg3.c
b/drivers/net/tg3.c
index bc4c62b8e81a4d7be3441bdc578daf3689646ab2..e3f74c9f78bd848f1e61aa6647f7109e7282fd7c 100644
(file)
--- a/
drivers/net/tg3.c
+++ b/
drivers/net/tg3.c
@@
-4017,6
+4017,8
@@
static int tg3_halt(struct tg3 *, int, int);
* Invoked with tp->lock held.
*/
static int tg3_restart_hw(struct tg3 *tp, int reset_phy)
+ __releases(tp->lock)
+ __acquires(tp->lock)
{
int err;