From 9009dd160faecf133fd9a67815df081407c68ddf Mon Sep 17 00:00:00 2001 From: Iulia Manda Date: Thu, 13 Mar 2014 01:35:40 +0200 Subject: [PATCH] staging: vt6656: Use __releases/__acquires annotations 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 Signed-off-by: Peter P Waskiewicz Jr --- drivers/staging/vt6656/usbpipe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index a4a4bf2..3592f07 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -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; -- 2.7.4