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 4e63aeb commit f62e8edCopy full SHA for f62e8ed
block/blk-settings.c
@@ -279,8 +279,7 @@ static int blk_validate_limits(struct queue_limits *lim)
279
} else if (lim->io_opt) {
280
lim->max_sectors =
281
min(max_hw_sectors, lim->io_opt >> SECTOR_SHIFT);
282
- } else if (lim->io_min &&
283
- lim->io_min > (BLK_DEF_MAX_SECTORS_CAP << SECTOR_SHIFT)) {
+ } else if (lim->io_min > (BLK_DEF_MAX_SECTORS_CAP << SECTOR_SHIFT)) {
284
285
min(max_hw_sectors, lim->io_min >> SECTOR_SHIFT);
286
} else {
0 commit comments