b360115af7 lib/intel_wa: Assert on error instead of returning -1