Check devn instead of dev (which will never be null at this point).
SVN-Revision: 28362
include $(TOPDIR)/rules.mk
PKG_NAME:=swconfig
-PKG_RELEASE:=9
+PKG_RELEASE:=10
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/kernel.mk
port = o->v.string;
}
}
- if (!dev || !port || !port[0])
+ if (!devn || !port || !port[0])
continue;
port_n = strtoul(port, &port_err, 0);
vlan = o->v.string;
}
}
- if (!dev || !vlan || !vlan[0])
+ if (!devn || !vlan || !vlan[0])
continue;
vlan_n = strtoul(vlan, &vlan_err, 0);