/* Extracts a parameter without a pv field (pl=0)  */
static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi, PV_TYPE type, PI_HANDLER func)
/* Extracts a parameter without a pv field (pl=0)  */
static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi, PV_TYPE type, PI_HANDLER func)
{
	irda_param_t p;
	int ret;
	irda_param_unpack(buf, "bb", &p.pi, &p.pl);
	ret = (*func)(self, &p, PV_PUT);
	if (ret < 0)
		return ret;
	return 2;
}