diff options
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2018-12-17 18:35:29 -0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-18 17:50:44 +0100 |
commit | 5698b805fbf09a5dfa60829f5a179c0568a8dc3b (patch) | |
tree | 0bddf37535f8320b14c4f2b643c4edd70ead0bf6 /drivers/nvme/target/nvmet.h | |
parent | 66c6afbd7321983be4c4160aff4d79e52af84a60 (diff) | |
download | linux-5698b805fbf09a5dfa60829f5a179c0568a8dc3b.tar.gz linux-5698b805fbf09a5dfa60829f5a179c0568a8dc3b.tar.bz2 linux-5698b805fbf09a5dfa60829f5a179c0568a8dc3b.zip |
nvmet: use a macro for default error location
This patch defines a new macro NVMET_NO_ERROR_LOC to represent the
default error location value in the nvme-error-log-page.
This is a pure cleanup patch and it does not change any functionality.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
-rw-r--r-- | drivers/nvme/target/nvmet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index 3b5f0bcaf3e8..3e4719fdba85 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -30,6 +30,7 @@ #define NVMET_ASYNC_EVENTS 4 #define NVMET_ERROR_LOG_SLOTS 128 +#define NVMET_NO_ERROR_LOC ((u16)-1) /* * Supported optional AENs: |