Commit 3325db3b authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

Fix NetDevRxQueueMgr::setDev when applied on an initialised object

parent f93f6bae
......@@ -533,12 +533,13 @@ void NetDevRxQueueMgr::setDev(string dev)
{
DEB_MEMBER_FUNCT();
DEB_PARAM() << DEB_VAR1(dev);
if (m_dev.empty())
if (m_dev.empty()) {
m_dev = dev;
else if (dev != m_dev)
m_irq_mgr.setDev(dev);
} else if (dev != m_dev) {
THROW_HW_ERROR(InvalidValue) << "name mismatch: "
<< DEB_VAR2(dev, m_dev);
m_irq_mgr.setDev(dev);
}
}
void NetDevRxQueueMgr::checkDev()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment