We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b491255 commit e924da7Copy full SHA for e924da7
block/blk-settings.c
@@ -465,8 +465,6 @@ static unsigned int queue_limit_discard_alignment(
465
/* Why are these in bytes, not sectors? */
466
alignment = lim->discard_alignment >> SECTOR_SHIFT;
467
granularity = lim->discard_granularity >> SECTOR_SHIFT;
468
- if (!granularity)
469
- return 0;
470
471
/* Offset of the partition start in 'granularity' sectors */
472
offset = sector_div(sector, granularity);
0 commit comments