Skip to content

Commit 1e7acbb

Browse files
Dave ChinnerBen Myers
authored andcommitted
xfs: silence uninitialised f.file warning.
Uninitialised variable build warning introduced by 2903ff0 ("switch simple cases of fget_light to fdget"), gcc is not smart enough to work out that the variable is not used uninitialised, and the commit removed the initialisation at declaration that the old variable had. Signed-off-by: Dave Chinner <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Mark Tinguely <[email protected]> Signed-off-by: Ben Myers <[email protected]>
1 parent eaef854 commit 1e7acbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ xfs_find_handle(
7070
int hsize;
7171
xfs_handle_t handle;
7272
struct inode *inode;
73-
struct fd f;
73+
struct fd f = {0};
7474
struct path path;
7575
int error;
7676
struct xfs_inode *ip;

0 commit comments

Comments
 (0)