/* Use this function to allocate socket buffers to store iucv message data.  */
static size_t iucv_msg_length(struct iucv_message *msg)
/* Use this function to allocate socket buffers to store iucv message data.  */
static size_t iucv_msg_length(struct iucv_message *msg)
{
	size_t datalen;
	if (msg->flags & IUCV_IPRMDATA) {
		datalen = 0xff - msg->rmmsg[7];
		return (datalen < 8) ? datalen : 8;
	}
	return msg->length;
}