[kvm-unit-tests,v1,3/5] s390x: make sure cpacf.h can be used
diff mbox

Message ID 20170919145033.16959-4-david@redhat.com
State New
Headers show

Commit Message

David Hildenbrand Sept. 19, 2017, 2:50 p.m. UTC
We don't define BUG(), just use a return instead.

Signed-off-by: David Hildenbrand <david@redhat.com>
---
 lib/s390x/asm/cpacf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

diff --git a/lib/s390x/asm/cpacf.h b/lib/s390x/asm/cpacf.h
index e06f255..ae2ec53 100644
--- a/lib/s390x/asm/cpacf.h
+++ b/lib/s390x/asm/cpacf.h
@@ -179,7 +179,7 @@  static inline int __cpacf_check_opcode(unsigned int opcode)
 	case CPACF_PRNO:
 		return test_facility(57);	/* check for MSA5 */
 	default:
-		BUG();
+		return 0;
 	}
 }