ieee1394: ieee1394_transactions.c: remove dead code
authorAdrian Bunk <bunk@kernel.org>
Sun, 28 Oct 2007 15:51:32 +0000 (16:51 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 31 Oct 2007 18:02:19 +0000 (19:02 +0100)
This patch removes dead code spotted by the Intel C Compiler.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/ieee1394_transactions.c

index c39c70a8aa9fce1e8eae54cdd0df6ab3a0c4a1e5..677989320951fc394229b74a69b65ef2317eb7c4 100644 (file)
@@ -235,7 +235,6 @@ int hpsb_packet_success(struct hpsb_packet *packet)
                                 packet->node_id);
                        return -EAGAIN;
                }
-               BUG();
 
        case ACK_BUSY_X:
        case ACK_BUSY_A:
@@ -282,7 +281,6 @@ int hpsb_packet_success(struct hpsb_packet *packet)
                         packet->ack_code, packet->node_id, packet->tcode);
                return -EAGAIN;
        }
-       BUG();
 }
 
 struct hpsb_packet *hpsb_make_readpacket(struct hpsb_host *host, nodeid_t node,