Btrfs: fix a build warning for an unused label
authorStefan Behrens <sbehrens@giantdisaster.de>
Tue, 27 Nov 2012 17:39:50 +0000 (17:39 +0000)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:13 +0000 (20:46 -0500)
This issue was detected by the "0-DAY kernel build testing".

fs/btrfs/volumes.c: In function 'btrfs_rm_device':
fs/btrfs/volumes.c:1505:1: warning: label 'error_close' defined but not used [-Wunused-label]

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c

index 32a4948b621cb60c305ca77aaf6e39f088e48e72..0b1b7e22e7eabd06f97a894fae28f82cbb59e886 100644 (file)
@@ -1544,7 +1544,6 @@ int btrfs_rm_device(struct btrfs_root *root, char *device_path)
 
 error_brelse:
        brelse(bh);
-error_close:
        if (bdev)
                blkdev_put(bdev, FMODE_READ | FMODE_EXCL);
 out: