Commit af622b8
nbd: nbd_reset() call in nbd_dev_add() is redundant
There is nothing to clear -- nbd_device has just been allocated.
Fold nbd_reset() into its other caller, nbd_config_put().
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>1 parent 8aa6382 commit af622b8
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | 940 | | |
949 | 941 | | |
950 | 942 | | |
| |||
1029 | 1021 | | |
1030 | 1022 | | |
1031 | 1023 | | |
1032 | | - | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1033 | 1028 | | |
1034 | 1029 | | |
1035 | 1030 | | |
| |||
1483 | 1478 | | |
1484 | 1479 | | |
1485 | 1480 | | |
1486 | | - | |
1487 | 1481 | | |
1488 | 1482 | | |
1489 | 1483 | | |
| |||
0 commit comments