Revert "btrfs: initialize location to fix -Wmaybe-uninitialized in btrfs_lookup_dentry()"

This reverts commit ccb6b6363d.
This commit is contained in:
Ksawlii 2024-11-24 00:23:39 +01:00
parent 631e573f84
commit 1944f01920

View file

@ -5527,7 +5527,7 @@ struct inode *btrfs_lookup_dentry(struct inode *dir, struct dentry *dentry)
struct inode *inode;
struct btrfs_root *root = BTRFS_I(dir)->root;
struct btrfs_root *sub_root = root;
struct btrfs_key location = { 0 };
struct btrfs_key location;
u8 di_type = 0;
int ret = 0;