Lines Matching refs:res
439 int res; in hsr_dev_finalize() local
450 res = hsr_create_self_node(hsr, hsr_dev->dev_addr, in hsr_dev_finalize()
452 if (res < 0) in hsr_dev_finalize()
453 return res; in hsr_dev_finalize()
481 res = hsr_add_port(hsr, hsr_dev, HSR_PT_MASTER); in hsr_dev_finalize()
482 if (res) in hsr_dev_finalize()
485 res = register_netdevice(hsr_dev); in hsr_dev_finalize()
486 if (res) in hsr_dev_finalize()
489 res = hsr_add_port(hsr, slave[0], HSR_PT_SLAVE_A); in hsr_dev_finalize()
490 if (res) in hsr_dev_finalize()
493 res = hsr_add_port(hsr, slave[1], HSR_PT_SLAVE_B); in hsr_dev_finalize()
494 if (res) in hsr_dev_finalize()
510 return res; in hsr_dev_finalize()