FreeBSD/sys/dev/cxgbe/iw_cxgbe/resource.c
/*
 * returns 0 if no resource available
 */
returns 0 if no resource available
returns 0 if no resource available
u32 c4iw_get_resource(struct c4iw_id_table *id_table)
{
	u32 entry;
	entry = c4iw_id_alloc(id_table);
	if (entry == (u32)(-1)) {
		return 0;
	}
	return entry;
}
u32 c4iw_get_resource ( struct c4iw_id_table * id_table ) { u32 entry ; entry = c4iw_id_alloc ( id_table ) ; if ( entry == ( u32 ) ( -1 ) ) { return 0 ; } return entry ; }
returns 0 if no resource available
returns 0 if no resource available