]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: hisilicon/qm - drop redundant variable initialization
authorChenghai Huang <huangchenghai2@huawei.com>
Mon, 30 Mar 2026 06:25:30 +0000 (14:25 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 12 Apr 2026 08:46:29 +0000 (16:46 +0800)
Variables are assigned before used. Initialization is not required.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c

index 0588355920dd8c258cb92a0256b1a590832cb09f..2bb51d4d88a690afa5d3c0364f1001632dd7ff94 100644 (file)
@@ -3381,7 +3381,7 @@ static int __hisi_qm_start(struct hisi_qm *qm)
 int hisi_qm_start(struct hisi_qm *qm)
 {
        struct device *dev = &qm->pdev->dev;
-       int ret = 0;
+       int ret;
 
        down_write(&qm->qps_lock);
 
@@ -3917,8 +3917,8 @@ back_func_qos:
 
 static u32 qm_get_shaper_vft_qos(struct hisi_qm *qm, u32 fun_index)
 {
-       u64 cir_u = 0, cir_b = 0, cir_s = 0;
        u64 shaper_vft, ir_calc, ir;
+       u64 cir_u, cir_b, cir_s;
        unsigned int val;
        u32 error_rate;
        int ret;