udf: fix sparse warnings:
Fix sparse warnings: fs/udf/balloc.c:843:3: warning: returning void-valued expression fs/udf/balloc.c:847:3: warning: returning void-valued expression fs/udf/balloc.c:851:3: warning: returning void-valued expression fs/udf/balloc.c:855:3: warning: returning void-valued expression Reported-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
Родитель
30930554f2
Коммит
e650b94add
|
@ -840,23 +840,17 @@ void udf_free_blocks(struct super_block *sb, struct inode *inode,
|
||||||
struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition];
|
struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition];
|
||||||
|
|
||||||
if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_BITMAP) {
|
if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_BITMAP) {
|
||||||
return udf_bitmap_free_blocks(sb, inode,
|
udf_bitmap_free_blocks(sb, inode, map->s_uspace.s_bitmap,
|
||||||
map->s_uspace.s_bitmap,
|
bloc, offset, count);
|
||||||
bloc, offset, count);
|
|
||||||
} else if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_TABLE) {
|
} else if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_TABLE) {
|
||||||
return udf_table_free_blocks(sb, inode,
|
udf_table_free_blocks(sb, inode, map->s_uspace.s_table,
|
||||||
map->s_uspace.s_table,
|
bloc, offset, count);
|
||||||
bloc, offset, count);
|
|
||||||
} else if (map->s_partition_flags & UDF_PART_FLAG_FREED_BITMAP) {
|
} else if (map->s_partition_flags & UDF_PART_FLAG_FREED_BITMAP) {
|
||||||
return udf_bitmap_free_blocks(sb, inode,
|
udf_bitmap_free_blocks(sb, inode, map->s_fspace.s_bitmap,
|
||||||
map->s_fspace.s_bitmap,
|
bloc, offset, count);
|
||||||
bloc, offset, count);
|
|
||||||
} else if (map->s_partition_flags & UDF_PART_FLAG_FREED_TABLE) {
|
} else if (map->s_partition_flags & UDF_PART_FLAG_FREED_TABLE) {
|
||||||
return udf_table_free_blocks(sb, inode,
|
udf_table_free_blocks(sb, inode, map->s_fspace.s_table,
|
||||||
map->s_fspace.s_table,
|
bloc, offset, count);
|
||||||
bloc, offset, count);
|
|
||||||
} else {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче