]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fabrics: remove the unneeded ret variable in nvmf_dev_show
authorChangcheng Deng <deng.changcheng@zte.com.cn>
Fri, 7 Jan 2022 02:23:06 +0000 (02:23 +0000)
committerChristoph Hellwig <hch@lst.de>
Thu, 27 Jan 2022 07:17:17 +0000 (08:17 +0100)
commit2ec97add4b75cd1368f171ace88d389b1da171eb
tree99cf2aaaab8a9c45da337f29f806a9336932a4c7
parent62df8cdd84b673c4db1d8736d6dad2372eb82e7b
nvme-fabrics: remove the unneeded ret variable in nvmf_dev_show

Remove unneeded variable and directly return 0.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c