Skip to content

Commit a5f3851

Browse files
Changcheng DengChristoph Hellwig
authored andcommitted
nvme-fabrics: remove the unneeded ret variable in nvmf_dev_show
Remove unneeded variable and directly return 0. Reported-by: Zeal Robot <[email protected]> Signed-off-by: Changcheng Deng <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 25e58af commit a5f3851

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/nvme/host/fabrics.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,6 @@ static void __nvmf_concat_opt_tokens(struct seq_file *seq_file)
10921092
static int nvmf_dev_show(struct seq_file *seq_file, void *private)
10931093
{
10941094
struct nvme_ctrl *ctrl;
1095-
int ret = 0;
10961095

10971096
mutex_lock(&nvmf_dev_mutex);
10981097
ctrl = seq_file->private;
@@ -1106,7 +1105,7 @@ static int nvmf_dev_show(struct seq_file *seq_file, void *private)
11061105

11071106
out_unlock:
11081107
mutex_unlock(&nvmf_dev_mutex);
1109-
return ret;
1108+
return 0;
11101109
}
11111110

11121111
static int nvmf_dev_open(struct inode *inode, struct file *file)

0 commit comments

Comments
 (0)