Skip to content

Commit 6ae4eda

Browse files
nathanchancemstsirkin
authored andcommitted
virtio_balloon: Adjust label in virtballoon_probe
Clang warns when CONFIG_BALLOON_COMPACTION is unset: ../drivers/virtio/virtio_balloon.c:963:1: warning: unused label 'out_del_vqs' [-Wunused-label] out_del_vqs: ^~~~~~~~~~~~ 1 warning generated. Move the label within the preprocessor block since it is only used when CONFIG_BALLOON_COMPACTION is set. Fixes: 1ad6f58 ("virtio_balloon: Fix memory leaks on errors in virtballoon_probe()") Link: ClangBuiltLinux#886 Signed-off-by: Nathan Chancellor <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: David Hildenbrand <[email protected]>
1 parent 3d973b2 commit 6ae4eda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/virtio/virtio_balloon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,8 +959,8 @@ static int virtballoon_probe(struct virtio_device *vdev)
959959
iput(vb->vb_dev_info.inode);
960960
out_kern_unmount:
961961
kern_unmount(balloon_mnt);
962-
#endif
963962
out_del_vqs:
963+
#endif
964964
vdev->config->del_vqs(vdev);
965965
out_free_vb:
966966
kfree(vb);

0 commit comments

Comments
 (0)