/* Delete given attribute and deallocate all its memory  */
static void __irias_delete_attrib(struct ias_attrib *attrib)
/* Delete given attribute and deallocate all its memory  */
static void __irias_delete_attrib(struct ias_attrib *attrib)
{
	IRDA_ASSERT(attrib != NULL, return;);
	IRDA_ASSERT(attrib->magic == IAS_ATTRIB_MAGIC, return;);
	kfree(attrib->name);
	irias_delete_value(attrib->value);
	attrib->magic = ~IAS_ATTRIB_MAGIC;
	kfree(attrib);
}