diff options
author | Minwoo Im | 2019-04-12 00:52:39 +0900 |
---|---|---|
committer | Christoph Hellwig | 2019-05-01 09:17:27 -0400 |
commit | 665648673ef5384c7194ea6df4b55f2da98646cf (patch) | |
tree | d206ccd464424dbba73cb62460a00162614be5c2 /drivers/nvme | |
parent | c8e9e9b7646ebe1c5066ddc420d7630876277eb4 (diff) |
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 <minwoo.im.dev@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index ac10d3ad1e75..e2ff92de41a7 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) |