Commit 9e0c7ef
block: remove more NULL checks after bdev_get_queue()
bdev_get_queue() never returns NULL. Several commits [1][2] have been made
before to remove such superfluous checks, but some still remained.
For places where bdev_get_queue() is called solely for NULL checks, it is
removed entirely.
[1] commit ec9fd2a ("blk-lib: don't check bdev_get_queue() NULL check")
[2] commit fea127b ("block: remove superfluous check for request queue in bdev_is_zoned()")
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/r/20230203024029.48260-1-qkrwngud825@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent d88cbbb commit 9e0c7ef
3 files changed
Lines changed: 2 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | 337 | | |
339 | 338 | | |
340 | 339 | | |
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | 343 | | |
349 | 344 | | |
350 | 345 | | |
| |||
391 | 386 | | |
392 | 387 | | |
393 | 388 | | |
394 | | - | |
395 | 389 | | |
396 | 390 | | |
397 | 391 | | |
398 | 392 | | |
399 | 393 | | |
400 | 394 | | |
401 | 395 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | 396 | | |
407 | 397 | | |
408 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
| 1279 | + | |
1285 | 1280 | | |
1286 | 1281 | | |
1287 | 1282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
732 | | - | |
| 732 | + | |
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | 736 | | |
741 | 737 | | |
742 | 738 | | |
| |||
0 commit comments