Commit bedf78c
nbd: share nbd_put and return by goto put_nbd
Replace the following two statements by the statement “goto put_nbd;”
nbd_put(nbd);
return 0;
Signed-off-by: Sun Ke <sunke32@huawei.com>
Suggested-by: Markus Elfring <Markus.Elfring@web.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/r/20210512114331.1233964-3-sunke32@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 79ebe91 commit bedf78c
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2015 | 2015 | | |
2016 | 2016 | | |
2017 | 2017 | | |
2018 | | - | |
2019 | | - | |
2020 | | - | |
2021 | | - | |
| 2018 | + | |
| 2019 | + | |
2022 | 2020 | | |
2023 | 2021 | | |
| 2022 | + | |
2024 | 2023 | | |
2025 | 2024 | | |
2026 | 2025 | | |
| |||
0 commit comments