diff options
author | Larry Finger | 2012-02-09 02:42:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2012-02-09 18:12:55 +0100 |
commit | 86587b671bf87ed81d2d89cd1199af912402a05f (patch) | |
tree | a4b45e66fdb5399a5082deadcf79f6a19ad0c346 /drivers/staging/rtl8712/drv_types.h | |
parent | staging: fix the build breakage cuased by telephony drivers (diff) | |
download | kernel-qcow2-linux-86587b671bf87ed81d2d89cd1199af912402a05f.tar.gz kernel-qcow2-linux-86587b671bf87ed81d2d89cd1199af912402a05f.tar.xz kernel-qcow2-linux-86587b671bf87ed81d2d89cd1199af912402a05f.zip |
staging: r8712u: Simplify semaphores
I am preparing to convert this driver from semaphore to mutex locking,
The first step has been to eliminate a number of semaphores that were
initialized but never used, and one whose only use was a single "up"
after initialization. A total of 9 semaphores were removed in this process.
One other change was to remove some inline semaphore routines that were
unused.
In addition, several cases had the following structure:
down()
if () {
...
}
up()
The locking overhead was reduced by moving the up/down inside the if
block.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/drv_types.h')
-rw-r--r-- | drivers/staging/rtl8712/drv_types.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/drv_types.h b/drivers/staging/rtl8712/drv_types.h index 9b5d771e650c..0735de9aad92 100644 --- a/drivers/staging/rtl8712/drv_types.h +++ b/drivers/staging/rtl8712/drv_types.h @@ -138,7 +138,6 @@ struct dvobj_priv { u8 ishighspeed; uint(*inirp_init)(struct _adapter *adapter); uint(*inirp_deinit)(struct _adapter *adapter); - struct semaphore usb_suspend_sema; struct usb_device *pusbdev; }; |