Commit a5f3851b authored by Changcheng Deng's avatar Changcheng Deng Committed by Christoph Hellwig

nvme-fabrics: remove the unneeded ret variable in nvmf_dev_show

Remove unneeded variable and directly return 0.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarChangcheng Deng <deng.changcheng@zte.com.cn>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 25e58af4
...@@ -1092,7 +1092,6 @@ static void __nvmf_concat_opt_tokens(struct seq_file *seq_file) ...@@ -1092,7 +1092,6 @@ static void __nvmf_concat_opt_tokens(struct seq_file *seq_file)
static int nvmf_dev_show(struct seq_file *seq_file, void *private) static int nvmf_dev_show(struct seq_file *seq_file, void *private)
{ {
struct nvme_ctrl *ctrl; struct nvme_ctrl *ctrl;
int ret = 0;
mutex_lock(&nvmf_dev_mutex); mutex_lock(&nvmf_dev_mutex);
ctrl = seq_file->private; ctrl = seq_file->private;
...@@ -1106,7 +1105,7 @@ static int nvmf_dev_show(struct seq_file *seq_file, void *private) ...@@ -1106,7 +1105,7 @@ static int nvmf_dev_show(struct seq_file *seq_file, void *private)
out_unlock: out_unlock:
mutex_unlock(&nvmf_dev_mutex); mutex_unlock(&nvmf_dev_mutex);
return ret; return 0;
} }
static int nvmf_dev_open(struct inode *inode, struct file *file) static int nvmf_dev_open(struct inode *inode, struct file *file)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment