]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: Make static nvme_dev private to open_dev(), use locals elsewhere
authorJeremy Kerr <jk@codeconstruct.com.au>
Tue, 12 Jul 2022 10:05:39 +0000 (18:05 +0800)
committerDaniel Wagner <dwagner@suse.de>
Fri, 12 Aug 2022 06:51:30 +0000 (08:51 +0200)
commita4ad8acad3b23877f93a7e543251a1d9ea621140
tree0986c1275447b3b75facd3317d297a182028d7e1
parentc0c888e185973e391e9351c7a7a86eb2ba2e099d
nvme: Make static nvme_dev private to open_dev(), use locals elsewhere

Currently nvme_dev is private to nvme.c, with file-scoped access to the
variable.

This reduces the scope of nvme_dev to just open_dev(), and uses locals
for all other references.

We'll change this to an allocated variable in an upcoming change.

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