2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-22 20:43:56 +08:00
linux-next/drivers/nvme/target
Colin Ian King 66c6afbd73 nvmet: fix comparison of a u16 with -1
Currently the u16 req->error_loc is being compared to -1 which
will always be false.  Fix this by casting -1 to u16 to fix this.

Detected by clang:
  warning: result of comparison of constant -1 with expression of
  type 'u16' (aka 'unsigned short') is always false
  [-Wtautological-constant-out-of-range-compare]

Fixes: 76574f37bf ("nvmet: add interface to update error-log page")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2018-12-18 17:50:43 +01:00
..
admin-cmd.c nvmet: update smart log with num err log entries 2018-12-13 09:59:07 +01:00
configfs.c nvmet: allow configfs tcp trtype configuration 2018-12-13 09:58:58 +01:00
core.c nvmet: fix comparison of a u16 with -1 2018-12-18 17:50:43 +01:00
discovery.c nvmet: add error log support for fabrics-cmd 2018-12-13 09:59:04 +01:00
fabrics-cmd.c nvmet: add error log support for fabrics-cmd 2018-12-13 09:59:04 +01:00
fc.c nvmet-fc: remove the IN_ISR deferred scheduling options 2018-12-07 22:26:57 -07:00
fcloop.c nvmet-fcloop: suppress a compiler warning 2018-10-17 08:58:31 +02:00
io-cmd-bdev.c nvmet: add error log support for bdev backend 2018-12-13 09:59:05 +01:00
io-cmd-file.c nvmet: add error log support for file backend 2018-12-13 09:59:06 +01:00
Kconfig nvmet-tcp: add NVMe over TCP target driver 2018-12-13 09:58:57 +01:00
loop.c for-4.19/block-20180812 2018-08-14 10:23:25 -07:00
Makefile nvmet-tcp: add NVMe over TCP target driver 2018-12-13 09:58:57 +01:00
nvmet.h nvmet: add error log support for file backend 2018-12-13 09:59:06 +01:00
rdma.c nvmet: add error log support for rdma backend 2018-12-13 09:59:04 +01:00
tcp.c nvmet-tcp: add NVMe over TCP target driver 2018-12-13 09:58:57 +01:00