]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitaf622b86665881ffa96bc77fb89c94fae02cfa6b
treeefce28ae8a62183077aedbfa7996e4a103e6068d
parent8aa6382907fa495e6b8b8184b53e36d142ffd8da
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