Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: hisilicon/qm - cleanup warning in qm_vf_read_qos

The kernel test rebot report this warning: Uninitialized variable: ret.
The code flow may return value of ret directly. This value is an
uninitialized variable, here is fix it.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Kai Ye and committed by
Herbert Xu
05b3bade 49838259

+1 -1
+1 -1
drivers/crypto/hisilicon/qm.c
··· 4295 4295 static int qm_vf_read_qos(struct hisi_qm *qm) 4296 4296 { 4297 4297 int cnt = 0; 4298 - int ret; 4298 + int ret = -EINVAL; 4299 4299 4300 4300 /* reset mailbox qos val */ 4301 4301 qm->mb_qos = 0;