staging: vt6656: Use __releases/__acquires annotations
authorIulia Manda <iulia.manda21@gmail.com>
Wed, 12 Mar 2014 23:35:40 +0000 (01:35 +0200)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Mon, 17 Mar 2014 00:07:06 +0000 (17:07 -0700)
This patch fixes the following sparse warnings:

drivers/staging/vt6656/usbpipe.c:147:24: warning: context imbalance in 'PIPEnsControlOut' - unexpected unlock
drivers/staging/vt6656/usbpipe.c:209:24: warning: context imbalance in 'PIPEnsControlIn' - unexpected unlock

Signed-off-by: Iulia Manda <iulia.manda21@gmail.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/vt6656/usbpipe.c

index a4a4bf24aad6f3b98dfb73d88b2219c1940a0107..3592f07bf5b0b804305fe2ea2010c7d3075c996a 100644 (file)
@@ -105,6 +105,8 @@ int PIPEnsControlOutAsyn(struct vnt_private *pDevice, u8 byRequest,
 
 int PIPEnsControlOut(struct vnt_private *pDevice, u8 byRequest, u16 wValue,
                u16 wIndex, u16 wLength, u8 *pbyBuffer)
+               __releases(&pDevice->lock)
+               __acquires(&pDevice->lock)
 {
        int ntStatus = 0;
        int ii;
@@ -167,6 +169,8 @@ int PIPEnsControlOut(struct vnt_private *pDevice, u8 byRequest, u16 wValue,
 
 int PIPEnsControlIn(struct vnt_private *pDevice, u8 byRequest, u16 wValue,
        u16 wIndex, u16 wLength,  u8 *pbyBuffer)
+       __releases(&pDevice->lock)
+       __acquires(&pDevice->lock)
 {
        int ntStatus = 0;
        int ii;