lightnvm: remove already calculated nr_chnls
authorRakesh Pandit <rakesh@tuxera.com>
Fri, 13 Oct 2017 12:45:53 +0000 (14:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commita96d50fa0c8d3e399c49a0a90ddbbaabf8a46bb3
tree389d2dbed2891d3a085ab81cabdd72dc28cd23b4
parent88d31ea2676696ad0802a361c8b824f0762fa34c
lightnvm: remove already calculated nr_chnls

Remove repeated calculation for number of channels while creating a
target device.

Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/core.c