/* Returns iocid and sets iocpp if iocid is found. Returns -1 if iocid is not found.  */
int mpt_verify_adapter(int iocid, MPT_ADAPTER **iocpp)
/* Returns iocid and sets iocpp if iocid is found. Returns -1 if iocid is not found.  */
int mpt_verify_adapter(int iocid, MPT_ADAPTER **iocpp)
{
	MPT_ADAPTER *ioc;
	list_for_each_entry(ioc,&ioc_list,list) {
		if (ioc->id == iocid) {
			*iocpp =ioc;
			return iocid;
		}
	}
	*iocpp = NULL;
	return -1;
}