]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
lnvm: make data_len to sizeof() instead of magic number
authorMinwoo Im <minwoo.im.dev@gmail.com>
Tue, 23 Jul 2019 16:48:03 +0000 (01:48 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Sat, 27 Jul 2019 18:55:35 +0000 (03:55 +0900)
commitb0b41d2916fcf1cd80cb0301068a98b45f9d8762
tree664c30e1fb9dc9f2365e652d2569a8ee4c08eddb
parentf9c949964a7f30620ed7f1fadf8d49281c2de4be
lnvm: make data_len to sizeof() instead of magic number

We can have it as a sizeof() instead of the hard-coded value for the
data structure.

Cc: Keith Busch <kbusch@kernel.org>
Cc: Matias Bjorling <mb@lightnvm.io>
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Matias Bjørling <matias.bjorling@wdc.com>
Reviewed-by: Javier González <javier@javigon.com>
nvme-lightnvm.c