]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/toshiba: pass struct nvme_dev rather than fd + name
authorJeremy Kerr <jk@codeconstruct.com.au>
Tue, 12 Jul 2022 08:47:53 +0000 (16:47 +0800)
committerDaniel Wagner <dwagner@suse.de>
Fri, 12 Aug 2022 06:50:57 +0000 (08:50 +0200)
commit9d431b0c47c77b5347cdd3346082b06695cb8d45
treeb6337140a98c2b3756d00f5c675892622f8ed6b5
parentef22215fa712574d5b12d434b16df4a06350bb79
plugins/toshiba: pass struct nvme_dev rather than fd + name

We currently pass both fd and name to internal functions. Just pass the
struct nvme_dev, which has both, instead.

While we're doing this, drop the usage of the global nvme_dev variable,
and drop an unnecessary cast from void *.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
plugins/toshiba/toshiba-nvme.c