From: Minwoo Im Date: Thu, 11 Apr 2019 15:52:39 +0000 (+0900) Subject: nvme-pci: remove an unneeded variable initialization X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=665648673ef5384c7194ea6df4b55f2da98646cf;p=linux.git nvme-pci: remove an unneeded variable initialization Variable "n" will be assigned once kstrtoint() succeeds, otherwise it will not be referred because kstrtoint() will return an error which means go out from this function. Signed-off-by: Minwoo Im Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index ac10d3ad1e754..e2ff92de41a78 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -146,7 +146,7 @@ static int io_queue_depth_set(const char *val, const struct kernel_param *kp) static int queue_count_set(const char *val, const struct kernel_param *kp) { - int n = 0, ret; + int n, ret; ret = kstrtoint(val, 10, &n); if (ret)