• Harald Freudenberger's avatar
    s390/zcrypt: fix smatch warnings · 47c07bff
    Harald Freudenberger authored
    Fix these smatch warnings:
    
    zcrypt_api.c:986 _zcrypt_send_ep11_cprb() error: uninitialized symbol 'pref_weight'.
    zcrypt_api.c:1008 _zcrypt_send_ep11_cprb() error: uninitialized symbol 'weight'.
    zcrypt_api.c:676 zcrypt_rsa_modexpo() error: uninitialized symbol 'pref_weight'.
    zcrypt_api.c:694 zcrypt_rsa_modexpo() error: uninitialized symbol 'weight'.
    zcrypt_api.c:760 zcrypt_rsa_crt() error: uninitialized symbol 'pref_weight'.
    zcrypt_api.c:778 zcrypt_rsa_crt() error: uninitialized symbol 'weight'.
    zcrypt_api.c:824 _zcrypt_send_cprb() warn: always true condition '(tdom >= 0) => (0-u16max >= 0)'
    zcrypt_api.c:846 _zcrypt_send_cprb() error: uninitialized symbol 'pref_weight'.
    zcrypt_api.c:867 _zcrypt_send_cprb() error: uninitialized symbol 'weight'.
    zcrypt_api.c:1065 zcrypt_rng() error: uninitialized symbol 'pref_weight'.
    zcrypt_api.c:1079 zcrypt_rng() error: uninitialized symbol 'weight'.
    zcrypt_cex4.c:251 ep11_card_op_modes_show() warn: should '(1 << ep11_op_modes[i]->mode_bit)' be a 64 bit type?
    zcrypt_cex4.c:346 ep11_queue_op_modes_show() warn: should '(1 << ep11_op_modes[i]->mode_bit)' be a 64 bit type?
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
    Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
    47c07bff
zcrypt_cex4.c 19.2 KB