/* Find a snap client by matching the 5 bytes.  */
static struct datalink_proto* find_snap_client(const unsigned char *desc)
/* Find a snap client by matching the 5 bytes.  */
static struct datalink_proto* find_snap_client(const unsigned char *desc)
{
	struct datalink_proto *proto = NULL, *p;
	list_for_each_entry_rcu(p, &snap_list, node) {
		if (!memcmp(p->type, desc, 5)) {
			proto = p;
			break;
		}
	}
	return proto;
}