]> www.infradead.org Git - nvme.git/commit
nvme: return string as char *, not unsigned char *
authorCaleb Sander <csander@purestorage.com>
Wed, 31 Jan 2024 16:43:11 +0000 (09:43 -0700)
committerKeith Busch <kbusch@kernel.org>
Thu, 1 Feb 2024 00:06:12 +0000 (16:06 -0800)
commit4b6821940eeb238a0cc9af322e9ebe8e12613f6a
tree4903ac012b0fee2a708883e0c2928205be45c19a
parent0945b43b4ef8833d73daf5d057d07b64a23b4220
nvme: return string as char *, not unsigned char *

The functions in drivers/nvme/host/constants.c returning human-readable
status and opcode strings currently use type "const unsigned char *".
Typically string constants use type "const char *",
so remove "unsigned" from the return types.
This is a purely cosmetic change to clarify that the functions
return text strings instead of an array of bytes, for example.

Signed-off-by: Caleb Sander <csander@purestorage.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/constants.c
drivers/nvme/host/nvme.h