diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-04-15 20:55:52 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-16 10:06:34 -0600 |
commit | 2a79efd833dd51c4362af655b9b011393c423f18 (patch) | |
tree | c128e8f600befd4da6cf05b3eb3212275aa08821 /drivers/lightnvm/pblk-write.c | |
parent | 503ec94eca4f49c0a18d67bb60445fe998a601ae (diff) | |
download | linux-2a79efd833dd51c4362af655b9b011393c423f18.tar.gz linux-2a79efd833dd51c4362af655b9b011393c423f18.tar.bz2 linux-2a79efd833dd51c4362af655b9b011393c423f18.zip |
lightnvm: fix some WARN() messages
WARN_ON() takes a condition, not an error message. I slightly tweaked
some conditions so hopefully it's more clear.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm/pblk-write.c')
-rw-r--r-- | drivers/lightnvm/pblk-write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk-write.c b/drivers/lightnvm/pblk-write.c index ee57db993cd1..74f7413a6b20 100644 --- a/drivers/lightnvm/pblk-write.c +++ b/drivers/lightnvm/pblk-write.c @@ -141,7 +141,7 @@ static void pblk_end_w_fail(struct pblk *pblk, struct nvm_rq *rqd) /* Logic error */ if (bit > c_ctx->nr_valid) { - WARN_ON_ONCE("pblk: corrupted write request\n"); + WARN_ONCE(1, "pblk: corrupted write request\n"); goto out; } |