Skip to content

Commit 0ba33fa

Browse files
committed
ext4: fix miscellaneous sparse warnings
Signed-off-by: Theodore Ts'o <[email protected]>
1 parent fbbbbd2 commit 0ba33fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

fs/ext4/fsmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ int ext4_getfsmap(struct super_block *sb, struct ext4_fsmap_head *head,
626626
{
627627
struct ext4_fsmap dkeys[2]; /* per-dev keys */
628628
struct ext4_getfsmap_dev handlers[EXT4_GETFSMAP_DEVS];
629-
struct ext4_getfsmap_info info = {0};
629+
struct ext4_getfsmap_info info = { NULL };
630630
int i;
631631
int error = 0;
632632

fs/ext4/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ static int ext4_getfsmap_format(struct ext4_fsmap *xfm, void *priv)
608608
static int ext4_ioc_getfsmap(struct super_block *sb,
609609
struct fsmap_head __user *arg)
610610
{
611-
struct getfsmap_info info = {0};
611+
struct getfsmap_info info = { NULL };
612612
struct ext4_fsmap_head xhead = {0};
613613
struct fsmap_head head;
614614
bool aborted = false;

fs/ext4/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4679,7 +4679,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
46794679

46804680
#ifdef CONFIG_QUOTA
46814681
for (i = 0; i < EXT4_MAXQUOTAS; i++)
4682-
kfree(sbi->s_qf_names[i]);
4682+
kfree(get_qf_name(sb, sbi, i));
46834683
#endif
46844684
ext4_blkdev_remove(sbi);
46854685
brelse(bh);

0 commit comments

Comments
 (0)