/* Returns 1 when event should be captured, or zero means no match.  */
static int _ctl_check_event_type(struct MPT2SAS_ADAPTER *ioc, u16 event)
/* Returns 1 when event should be captured, or zero means no match.  */
static int _ctl_check_event_type(struct MPT2SAS_ADAPTER *ioc, u16 event)
{
	u16 i;
	u32 desired_event;
	if (event >= 128 || !event || !ioc->event_log)
		return 0;
	desired_event = (1 << (event % 32));
	if (!desired_event)
		desired_event = 1;
	i = event / 32;
	return desired_event & ioc->event_type[i];
}