1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fpga: improve code style

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel 2022-12-02 18:36:07 +01:00
parent 6ad4deb3c6
commit 20ffee08e4

View file

@ -241,7 +241,7 @@ int FpgaNodeFactory::start(SuperNode *sn)
vfioContainer = kernel::vfio::Container::create();
pciDevices = std::make_shared<kernel::pci::DeviceList>();
// get the FPGA card plugin
// Get the FPGA card plugin
auto pcieCardPlugin = plugin::registry->lookup<fpga::PCIeCardFactory>("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;
}