Skip to content

Commit ef351c2

Browse files
hreineckeigaw
authored andcommitted
nvme.i: fixup typo in nvme:discover
The check for existing controller is inverted. Signed-off-by: Hannes Reinecke <hare@suse.de>
1 parent 8eace59 commit ef351c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libnvme/nvme.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ struct nvme_ns {
831831
};
832832

833833
dev = nvme_ctrl_get_name($self);
834-
if (dev) {
834+
if (!dev) {
835835
discover_err = 1;
836836
return NULL;
837837
}

0 commit comments

Comments
 (0)