diff --git a/nvme.c b/nvme.c index 1ee9a062da..7615fb2ff4 100644 --- a/nvme.c +++ b/nvme.c @@ -2473,7 +2473,8 @@ static int list_subsys(int argc, char **argv, struct command *cmd, } if (devicename) { - char *n, *eptr = NULL; + const char *n; + char *eptr = NULL; n = strrchr(devicename, 'n'); if (!n) {