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)
commitd788c59be5fa98ef41cc4dbab8e0cd8a29df082c
tree187fef31a112f367ab75c30fe69d7f39bb9a4a8c
parent5d30f3bd5578cd02c9aaf273e854d89b1ca91bb8
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