Skip to content

Commit d2b5e8d

Browse files
Chenghai Huangherbertx
authored andcommitted
crypto: hisilicon/qm - drop redundant variable initialization
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>
1 parent 6e7619d commit d2b5e8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/crypto/hisilicon

drivers/crypto/hisilicon/qm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3381,7 +3381,7 @@ static int __hisi_qm_start(struct hisi_qm *qm)
33813381
int hisi_qm_start(struct hisi_qm *qm)
33823382
{
33833383
struct device *dev = &qm->pdev->dev;
3384-
int ret = 0;
3384+
int ret;
33853385

33863386
down_write(&qm->qps_lock);
33873387

@@ -3917,8 +3917,8 @@ static int qm_func_shaper_enable(struct hisi_qm *qm, u32 fun_index, u32 qos)
39173917

39183918
static u32 qm_get_shaper_vft_qos(struct hisi_qm *qm, u32 fun_index)
39193919
{
3920-
u64 cir_u = 0, cir_b = 0, cir_s = 0;
39213920
u64 shaper_vft, ir_calc, ir;
3921+
u64 cir_u, cir_b, cir_s;
39223922
unsigned int val;
39233923
u32 error_rate;
39243924
int ret;

0 commit comments

Comments
 (0)