Fix typo I introduced in the bdev change.

When adding the missing return value in Caglar's change (as discussed on
the mailing-list), I set err = -1 instead or ret = -1, causing an
obvious build failure...

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2014-03-03 11:31:03 -05:00
parent 385e8e8caa
commit e27141fa26
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -1365,7 +1365,7 @@ static int btrfs_same_fs(const char *orig, const char *new) {
fd_new = open(new, O_RDONLY);
if (fd_new < 0) {
SYSERROR("Error opening new container dir %s", new);
err = -1;
ret = -1;
goto out;
}
ret = ioctl(fd_new, BTRFS_IOC_FS_INFO, &new_args);