firewire: warn on fatal condition in topology code

If this ever happens to anybody, we want to have it in his log.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

+2 -1
+2 -1
drivers/firewire/fw-topology.c
··· 21 #include <linux/module.h> 22 #include <linux/wait.h> 23 #include <linux/errno.h> 24 #include <asm/system.h> 25 #include "fw-transaction.h" 26 #include "fw-topology.h" ··· 425 node1 = fw_node(list1.next); 426 427 while (&node0->link != &list0) { 428 429 - /* assert(node0->port_count == node1->port_count); */ 430 if (node0->link_on && !node1->link_on) 431 event = FW_NODE_LINK_OFF; 432 else if (!node0->link_on && node1->link_on)
··· 21 #include <linux/module.h> 22 #include <linux/wait.h> 23 #include <linux/errno.h> 24 + #include <asm/bug.h> 25 #include <asm/system.h> 26 #include "fw-transaction.h" 27 #include "fw-topology.h" ··· 424 node1 = fw_node(list1.next); 425 426 while (&node0->link != &list0) { 427 + WARN_ON(node0->port_count != node1->port_count); 428 429 if (node0->link_on && !node1->link_on) 430 event = FW_NODE_LINK_OFF; 431 else if (!node0->link_on && node1->link_on)