From 6081a58f3d1b9b783a1e5c1333d1fa5322635c23 Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Wed, 6 Jan 2016 12:10:07 +0800 Subject: [PATCH] NVMEDevice: Fix typo Signed-off-by: Haomai Wang --- src/os/bluestore/NVMEDevice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/NVMEDevice.cc b/src/os/bluestore/NVMEDevice.cc index bb25e5b75b90b..33d500d01981c 100644 --- a/src/os/bluestore/NVMEDevice.cc +++ b/src/os/bluestore/NVMEDevice.cc @@ -214,7 +214,7 @@ int SharedDriverData::try_get(const string &sn_tag, nvme_controller **c, string { Mutex::Locker l(lock); int r = 0; - if (init) { + if (!init) { r = rte_eal_init(sizeof(ealargs) / sizeof(ealargs[0]), (char **)(void *)(uintptr_t)ealargs); if (r < 0) { derr << __func__ << " failed to do rte_eal_init" << dendl; -- 2.39.5