]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: fix type checks on rrpc
authorJavier González <jg@lightnvm.io>
Sat, 15 Apr 2017 18:55:48 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:25 +0000 (10:06 -0600)
commit54a217c714e922bbc4b55a00d73920da0799a753
tree187fef31a112f367ab75c30fe69d7f39bb9a4a8c
parent5659f0fe222bb55245a65cfab301367eda28e73c
lightnvm: fix type checks on rrpc

sector_t is always unsigned, therefore avoid < 0 checks on it.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/rrpc.c