From: Iulia Manda Date: Wed, 12 Mar 2014 23:35:40 +0000 (+0200) Subject: staging: vt6656: Use __releases/__acquires annotations X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9009dd160faecf133fd9a67815df081407c68ddf;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index a4a4bf24aad6..3592f07bf5b0 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;