FreeBSD/sys/dev/firewire/firewire.c
/*
 * To free IEEE1394 XFER structure.
 */
To free IEEE1394 XFER structure.
To free IEEE1394 XFER structure .
void
fw_xfer_free_buf(struct fw_xfer *xfer)
{
	if (xfer == NULL) {
		printf("%s: xfer == NULL\n", __func__);
		return;
	}
	fw_xfer_unload(xfer);
	if (xfer->send.payload != NULL)
		free(xfer->send.payload, xfer->malloc);
	if (xfer->recv.payload != NULL)
		free(xfer->recv.payload, xfer->malloc);
	free(xfer, xfer->malloc);
}
void fw_xfer_free_buf ( struct fw_xfer * xfer ) { if ( xfer == NULL ) { printf ( " \n " , __func__ ) ; return ; } fw_xfer_unload ( xfer ) ; if ( xfer -> send . payload != NULL ) free ( xfer -> send . payload , xfer -> malloc ) ; if ( xfer -> recv . payload != NULL ) free ( xfer -> recv . payload , xfer -> malloc ) ; free ( xfer , xfer -> malloc ) ; }
To free IEEE1394 XFER structure.
To free IEEE1394 XFER structure .