]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: nbd_reset() call in nbd_dev_add() is redundant
authorIlya Dryomov <idryomov@gmail.com>
Tue, 23 May 2017 15:49:54 +0000 (17:49 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 30 May 2017 14:15:07 +0000 (08:15 -0600)
commit1767208b187bb7cd3d8c9c7abc1c979ddd6fa849
treeefce28ae8a62183077aedbfa7996e4a103e6068d
parentd2921c64f8d380bf452dcfd9f4dfa401e7571125
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>
drivers/block/nbd.c