mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
replaced IRQ error by warning (loopback devices dont have IRQs)
git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@212 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
parent
4962bae64e
commit
09f650d8be
1 changed files with 4 additions and 2 deletions
|
@ -48,8 +48,10 @@ int if_getirqs(struct interface *i)
|
|||
|
||||
snprintf(dirname, sizeof(dirname), "/sys/class/net/%s/device/msi_irqs/", i->name);
|
||||
DIR *dir = opendir(dirname);
|
||||
if (!dir)
|
||||
error("Cannot open IRQs for interface '%s'", i->name);
|
||||
if (!dir) {
|
||||
warn("Cannot open IRQs for interface '%s'", i->name);
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
memset(&i->irqs, 0, sizeof(char) * IF_IRQ_MAX);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue