summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2012-11-27 18:39:50 +0100
committerChris Mason <chris.mason@fusionio.com>2012-12-17 02:46:13 +0100
commitf9c83748deb94aba89b5c1085f887ddcdab223ef (patch)
treecb133d1c4bc9831aeb059f9994f4336844e475d3 /fs/btrfs/volumes.c
parentBtrfs: fix race in check-integrity caused by usage of bitfield (diff)
downloadlinux-f9c83748deb94aba89b5c1085f887ddcdab223ef.tar.xz
linux-f9c83748deb94aba89b5c1085f887ddcdab223ef.zip
Btrfs: fix a build warning for an unused label
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>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 32a4948b621c..0b1b7e22e7ea 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -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: