/* This function returns %1 if the buffer is empty (contains all 0xff) otherwise %0 is returned.  */
static int is_empty(void *buf, int len)
/* This function returns %1 if the buffer is empty (contains all 0xff) otherwise %0 is returned.  */
static int is_empty(void *buf, int len)
{
	uint8_t *p = buf;
	int i;
	for (i = 0; i < len; i++)
		if (*p++ != 0xff)
			return 0;
	return 1;
}