Commit de664d0c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix MOD_{INC,DEC}_USE_COUNT gunk in arch/um/drivers/net_kern.c

From: Christoph Hellwig <hch@lst.de>

Well, UML is pretty out of date in mainline, but I'd like to squash the last
users of said beasts rather sooner than later.
parent 05347c79
...@@ -124,7 +124,6 @@ static int uml_net_open(struct net_device *dev) ...@@ -124,7 +124,6 @@ static int uml_net_open(struct net_device *dev)
spin_lock(&opened_lock); spin_lock(&opened_lock);
list_add(&lp->list, &opened); list_add(&lp->list, &opened);
spin_unlock(&opened_lock); spin_unlock(&opened_lock);
MOD_INC_USE_COUNT;
out: out:
spin_unlock(&lp->lock); spin_unlock(&lp->lock);
return(err); return(err);
...@@ -144,7 +143,6 @@ static int uml_net_close(struct net_device *dev) ...@@ -144,7 +143,6 @@ static int uml_net_close(struct net_device *dev)
list_del(&lp->list); list_del(&lp->list);
spin_unlock(&opened_lock); spin_unlock(&opened_lock);
MOD_DEC_USE_COUNT;
spin_unlock(&lp->lock); spin_unlock(&lp->lock);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment