s390/appldata: change return value of appldata_asm
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 6 Sep 2012 14:53:44 +0000 (16:53 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Sep 2012 13:45:15 +0000 (15:45 +0200)
Change return value of appldata_asm() to -EOPNOTSUPP in case of an
error. The return value was only used internally and not passed to
user space.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/appldata.h

index f328294faeae572f59c5b2dcd89f116299a8bd3b..32a705987156c3957696c95ab07a8e5e0d7319fa 100644 (file)
@@ -70,7 +70,7 @@ static inline int appldata_asm(struct appldata_product_id *id,
        int ry;
 
        if (!MACHINE_IS_VM)
-               return -ENOSYS;
+               return -EOPNOTSUPP;
        parm_list.diag = 0xdc;
        parm_list.function = fn;
        parm_list.parlist_length = sizeof(parm_list);