]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/ocp: pass struct nvme_dev to internal functions
authorJeremy Kerr <jk@codeconstruct.com.au>
Tue, 12 Jul 2022 08:54:53 +0000 (16:54 +0800)
committerDaniel Wagner <dwagner@suse.de>
Fri, 12 Aug 2022 06:50:57 +0000 (08:50 +0200)
commit12e8bdda7d35d63f29905cdb69376ea380c39fa3
tree0ebc12f1e76c5308330971e5c912bcb5b6e5c527
parent9d431b0c47c77b5347cdd3346082b06695cb8d45
plugins/ocp: pass struct nvme_dev to internal functions

Currently, we're passing a NVMe file descriptor, then accessing the
global nvme_dev.

This change just passes the local struct nvme_dev instead.

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