Message ID | 20180710132414.GA25686@athens (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -2240,7 +2240,7 @@ static long btrfs_control_ioctl(struct f case BTRFS_IOC_SCAN_DEV: fs_devices = btrfs_scan_one_device(vol->name, FMODE_READ, &btrfs_root_fs_type); - ret = IS_ERR(fs_devices) ? PTR_ERR(fs_devices) : 0; + ret = PTR_ERR_OR_ZERO(fs_devices); break; case BTRFS_IOC_DEVICES_READY: fs_devices = btrfs_scan_one_device(vol->name, FMODE_READ,