Skip to contentSkip to conversation

misc: mic: remove unused label

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 15, 2017 – Dec 19, 2017 Char and misc drivers

lore
Share & tools
lore

Arnd Bergmann

author maintainer
#0 lore raw

PATCH 1/1 misc: mic: remove unused label

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")
---
 drivers/misc/mic/vop/vop_vringh.c | 1 -
 1 file changed, 1 deletion(-)
drivers/misc/mic/vop/vop_vringh.c +0 -1
index b995cf741388..01d1f2ba7bb8 100644
@@ -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);
Signature · 1 line
2.9.0
#1 lore raw
Quoted 5 lines · Arnd Bergmann

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]

Quoted 7 lines

This cleans it up as well.

Fixes 30b7a2c19e29 ("misc: mic: Use memdup_user() as a cleanup")
---
 drivers/misc/mic/vop/vop_vringh.c | 1 -
 1 file changed, 1 deletion(-)

Colin beat you to this by 2 days :)