summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHarald Freudenberger <freude@linux.ibm.com>2018-08-17 10:01:09 +0300
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-08-20 17:02:10 +0300
commit9b97e9f555f1fe5044dc76d9212078757aa143ce (patch)
tree0c54e715943cbce03bd277ea5e98862d0f5624b3 /arch
parent28b7465376b9f9633bb774e45c0421dc4db7f303 (diff)
downloadlinux-9b97e9f555f1fe5044dc76d9212078757aa143ce.tar.xz
s390/zcrypt: switch return type to bool for ap_instructions_available()
Function ap_instructions_available() had returntype int but in fact returned 1 for true and 0 for false. Changed returntype to bool. Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/include/asm/ap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/include/asm/ap.h b/arch/s390/include/asm/ap.h
index 887494aa164f..8c00fd509c45 100644
--- a/arch/s390/include/asm/ap.h
+++ b/arch/s390/include/asm/ap.h
@@ -49,9 +49,9 @@ struct ap_queue_status {
/**
* ap_intructions_available() - Test if AP instructions are available.
*
- * Returns 1 if the AP instructions are installed, otherwise 0.
+ * Returns true if the AP instructions are installed, otherwise false.
*/
-static inline int ap_instructions_available(void)
+static inline bool ap_instructions_available(void)
{
register unsigned long reg0 asm ("0") = AP_MKQID(0, 0);
register unsigned long reg1 asm ("1") = 0;
@@ -65,7 +65,7 @@ static inline int ap_instructions_available(void)
: "+d" (reg1), "+d" (reg2)
: "d" (reg0)
: "cc");
- return reg1;
+ return reg1 != 0;
}
/**