projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nvmet: fix comparison of a u16 with -1
[linux-2.6-microblaze.git]
/
drivers
/
nvme
/
target
/
core.c
diff --git
a/drivers/nvme/target/core.c
b/drivers/nvme/target/core.c
index
cc81d02
..
b9c219c
100644
(file)
--- a/
drivers/nvme/target/core.c
+++ b/
drivers/nvme/target/core.c
@@
-663,7
+663,7
@@
static void nvmet_set_error(struct nvmet_req *req, u16 status)
req->rsp->status = cpu_to_le16(status << 1);
- if (!ctrl || req->error_loc == -1)
+ if (!ctrl || req->error_loc ==
(u16)
-1)
return;
spin_lock_irqsave(&ctrl->error_lock, flags);