From 20ffee08e4b531b1384b5a4a69e235f0ca90519d Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 2 Dec 2022 18:36:07 +0100 Subject: [PATCH] fpga: improve code style Signed-off-by: Steffen Vogel --- lib/nodes/fpga.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nodes/fpga.cpp b/lib/nodes/fpga.cpp index 55946ae2e..291d236b1 100644 --- a/lib/nodes/fpga.cpp +++ b/lib/nodes/fpga.cpp @@ -241,7 +241,7 @@ int FpgaNodeFactory::start(SuperNode *sn) vfioContainer = kernel::vfio::Container::create(); pciDevices = std::make_shared(); - // get the FPGA card plugin + // Get the FPGA card plugin auto pcieCardPlugin = plugin::registry->lookup("pcie"); if (!pcieCardPlugin) throw RuntimeError("No FPGA PCIe plugin found"); @@ -252,9 +252,9 @@ int FpgaNodeFactory::start(SuperNode *sn) throw ConfigError(json_cfg, "node-config-fpgas", "No section 'fpgas' found in config"); // create all FPGA card instances using the corresponding plugin - auto cards = fpga::PCIeCardFactory::make(json_fpgas, pciDevices, vfioContainer); + auto piceCards = fpga::PCIeCardFactory::make(json_fpgas, pciDevices, vfioContainer); - cards.splice(cards.end(), cards); + cards.splice(cards.end(), piceCards); return 0; }