default: HPSB_ERR("got invalid ack %d from node %d (tcode %d)", packet->ack_code, packet->node_id, packet->tcode); return -EAGAIN; }  HPSB_PANIC("reached unreachable code 2 in %s", __FUNCTION__); 
HPSB_PANIC("reached unreachable code 2 in %s", __FUNCTION__); 
int hpsb_packet_success(struct hpsb_packet *packet){        switch (packet->ack_code) {        case ACK_PENDING:                switch ((packet->header[1] >> 12) & 0xf) {                case RCODE_COMPLETE:                        return 0;                case RCODE_CONFLICT_ERROR:                        return -EAGAIN;                case RCODE_DATA_ERROR:                        return -EREMOTEIO;                case RCODE_TYPE_ERROR:                        return -EACCES;                case RCODE_ADDRESS_ERROR:                        return -EINVAL;                default:                        HPSB_ERR("received reserved rcode %d from node %d",                                 (packet->header[1] >> 12) & 0xf,                                 packet->node_id);                        return -EAGAIN;                }                HPSB_PANIC("reached unreachable code 1 in %s", __FUNCTION__);        case ACK_BUSY_X:        case ACK_BUSY_A:        case ACK_BUSY_B:                return -EBUSY;        case ACK_TYPE_ERROR:                return -EACCES;        case ACK_COMPLETE:                if (packet->tcode == TCODE_WRITEQ                    || packet->tcode == TCODE_WRITEB) {                        return 0;                } else {                        HPSB_ERR("impossible ack_complete from node %d "                                 "(tcode %d)", packet->node_id, packet->tcode);                        return -EAGAIN;                }        case ACK_DATA_ERROR:                if (packet->tcode == TCODE_WRITEB                    || packet->tcode == TCODE_LOCK_REQUEST) {                        return -EAGAIN;                } else {                        HPSB_ERR("impossible ack_data_error from node %d "                                 "(tcode %d)", packet->node_id, packet->tcode);                        return -EAGAIN;                }        case ACK_ADDRESS_ERROR:                return -EINVAL;        case ACK_TARDY:        case ACK_CONFLICT_ERROR:        case ACKX_NONE:        case ACKX_SEND_ERROR:        case ACKX_ABORTED:        case ACKX_TIMEOUT:                /* error while sending */                return -EAGAIN;        default:                HPSB_ERR("got invalid ack %d from node %d (tcode %d)",                         packet->ack_code, packet->node_id, packet->tcode);                return -EAGAIN;        }        HPSB_PANIC("reached unreachable code 2 in %s", __FUNCTION__);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/16c333a34a1a0441c54c4fe5cf6052716f95c2fa/ieee1394_transactions.c/buggy/drivers/ieee1394/ieee1394_transactions.c