kernels/linux-2.4.0/drivers/ieee1394/ieee1394_core.c
/**
 * free_hpsb_packet - free packet and data associated with it
 * @packet: packet to free (is NULL safe)
 *
 * This function will free packet->data, packet->header and finally the packet
 * itself.
 */
free packet and data associated with it
@packet: packet to free (is NULL safe)

This function will free packet->data, packet->header and finally the packet
itself.
free packet and data associated with it @packet : packet to free ( is NULL safe ) This function will free packet - > data packet - > header and finally the packet itself .
void free_hpsb_packet(struct hpsb_packet *packet)
{
        if (packet == NULL) {
                return;
        }
        kfree(packet->data);
        kfree(packet->header);
        kfree(packet);
}
void free_hpsb_packet ( struct hpsb_packet * packet ) { if ( packet == NULL ) { return ; } kfree ( packet -> data ) ; kfree ( packet -> header ) ; kfree ( packet ) ; }
free_hpsb_packet - free packet and data associated with it
 @packet: packet to free (is NULL safe)
free_hpsb_packet - free packet and data associated with it @packet : packet to free ( is NULL safe )