diff options
author | Pavel Roskin <proski@gnu.org> | 2007-07-11 03:55:41 -0400 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-07-15 12:19:03 -0400 |
commit | a835fc372bb42dfb4858ad8e3d1f4ab28ead75f1 (patch) | |
tree | 91f39a7af5df681a0e1e0c8cc5a2a56a324d782e | |
parent | 50501f2ba5dcf43081750bbe802105dfb5008584 (diff) |
[PATCH] Remove priv->open_count, it's write-only
Signed-off-by: Pavel Roskin <proski@gnu.org>
-rw-r--r-- | at76_usb.c | 7 | ||||
-rw-r--r-- | at76_usb.h | 1 |
2 files changed, 0 insertions, 8 deletions
@@ -3867,8 +3867,6 @@ static int at76_open(struct net_device *netdev) goto err; } - priv->open_count++; - schedule_delayed_work(&priv->dwork_restart, 0); at76_dbg(DBG_PROC_ENTRY, "%s(): end", __func__); @@ -3915,9 +3913,6 @@ static int at76_stop(struct net_device *netdev) /* free the bss_list */ at76_free_bss_list(priv); - at76_assert(priv->open_count > 0); - priv->open_count--; - mutex_unlock(&priv->mtx); at76_dbg(DBG_DEVSTART, "%s: EXIT", __func__); @@ -5814,8 +5809,6 @@ static struct at76_priv *at76_alloc_new_device(struct usb_device *udev) INIT_DELAYED_WORK(&priv->dwork_restart, at76_work_restart); INIT_DELAYED_WORK(&priv->dwork_mgmt, at76_work_mgmt_timeout); - priv->open_count = 0; - spin_lock_init(&priv->mgmt_spinlock); priv->next_mgmt_bulk = NULL; priv->istate = INIT; @@ -455,7 +455,6 @@ struct at76_priv { struct urb *read_urb; unsigned int tx_bulk_pipe; /* bulk out endpoint */ - int open_count; /* number of times this port has been opened */ struct mutex mtx; /* locks this structure */ /* work queues */ |