diff mbox series

misc: mic: remove unused label

Message ID 20171215124759.2853872-1-arnd@arndb.de
State New
Headers show
Series misc: mic: remove unused label | expand

Commit Message

Arnd Bergmann Dec. 15, 2017, 12:47 p.m. UTC
A cleanup left an unused label behind:

drivers/misc/mic/vop/vop_vringh.c: In function 'vop_ioctl':
drivers/misc/mic/vop/vop_vringh.c:1001:1: error: label 'done' defined but not used [-Werror=unused-label]

This cleans it up as well.

Fixes: 30b7a2c19e29 ("misc: mic: Use memdup_user() as a cleanup")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

---
 drivers/misc/mic/vop/vop_vringh.c | 1 -
 1 file changed, 1 deletion(-)

-- 
2.9.0

Comments

Greg KH Dec. 19, 2017, 9:53 a.m. UTC | #1
On Fri, Dec 15, 2017 at 01:47:27PM +0100, Arnd Bergmann wrote:
> A cleanup left an unused label behind:

> 

> drivers/misc/mic/vop/vop_vringh.c: In function 'vop_ioctl':

> drivers/misc/mic/vop/vop_vringh.c:1001:1: error: label 'done' defined but not used [-Werror=unused-label]

> 

> This cleans it up as well.

> 

> Fixes: 30b7a2c19e29 ("misc: mic: Use memdup_user() as a cleanup")

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

> ---

>  drivers/misc/mic/vop/vop_vringh.c | 1 -

>  1 file changed, 1 deletion(-)


Colin beat you to this by 2 days :)
diff mbox series

Patch

diff --git a/drivers/misc/mic/vop/vop_vringh.c b/drivers/misc/mic/vop/vop_vringh.c
index b995cf741388..01d1f2ba7bb8 100644
--- a/drivers/misc/mic/vop/vop_vringh.c
+++ b/drivers/misc/mic/vop/vop_vringh.c
@@ -998,7 +998,6 @@  static long vop_ioctl(struct file *f, unsigned int cmd, unsigned long arg)
 			goto __unlock_ret;
 		}
 		ret = vop_virtio_config_change(vdev, buf);
-done:
 		kfree(buf);
 __unlock_ret:
 		mutex_unlock(&vdev->vdev_mutex);