Commit 81314bf
block: req->bio is always set in the merge code
As smatch, which is a lot smarter than me noticed. So remove the checks
for it, and condense these checks a bit including the comments stating
the obvious.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: John Garry <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 9f8d682 commit 81314bf
1 file changed
+8
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
875 | 871 | | |
876 | 872 | | |
877 | 873 | | |
| |||
983 | 979 | | |
984 | 980 | | |
985 | 981 | | |
986 | | - | |
987 | 982 | | |
988 | 983 | | |
989 | | - | |
990 | | - | |
991 | 984 | | |
992 | 985 | | |
993 | | - | |
994 | | - | |
995 | 986 | | |
996 | 987 | | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
1006 | 992 | | |
1007 | 993 | | |
1008 | 994 | | |
| |||
0 commit comments