diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-07-17 10:17:36 -0400 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2018-07-24 09:55:51 -0400 |
| commit | 1b0d274523df5ef1caedc834da055ff721e4d4f0 (patch) | |
| tree | 30e600069e9dac585697ba0b88e4419ce83da5d8 /drivers/nvme | |
| parent | 9c891c139894ce2ec0ca585a00e0bec5e6b4ccab (diff) | |
nvmet: don't use uuid_le type
Don't use sizeof(uuid_le) where none of the parameters is type of uuid_le.
Since both arguments are u8 [16], use size of destination there.
Moreover, uuid_le is a deprecated type, and nvmet is using uuid_t
already.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
| -rw-r--r-- | drivers/nvme/target/admin-cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c index 837bbdbfaa4b..16a9b24270f9 100644 --- a/drivers/nvme/target/admin-cmd.c +++ b/drivers/nvme/target/admin-cmd.c | |||
| @@ -338,7 +338,7 @@ static void nvmet_execute_identify_ns(struct nvmet_req *req) | |||
| 338 | */ | 338 | */ |
| 339 | id->nmic = (1 << 0); | 339 | id->nmic = (1 << 0); |
| 340 | 340 | ||
| 341 | memcpy(&id->nguid, &ns->nguid, sizeof(uuid_le)); | 341 | memcpy(&id->nguid, &ns->nguid, sizeof(id->nguid)); |
| 342 | 342 | ||
| 343 | id->lbaf[0].ds = ns->blksize_shift; | 343 | id->lbaf[0].ds = ns->blksize_shift; |
| 344 | 344 | ||
