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 - 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>

authored by

Chenghai Huang and committed by
Herbert Xu
d2b5e8d3 6e7619dc

+2 -2
+2 -2
drivers/crypto/hisilicon/qm.c
··· 3381 3381 int hisi_qm_start(struct hisi_qm *qm) 3382 3382 { 3383 3383 struct device *dev = &qm->pdev->dev; 3384 - int ret = 0; 3384 + int ret; 3385 3385 3386 3386 down_write(&qm->qps_lock); 3387 3387 ··· 3917 3917 3918 3918 static u32 qm_get_shaper_vft_qos(struct hisi_qm *qm, u32 fun_index) 3919 3919 { 3920 - u64 cir_u = 0, cir_b = 0, cir_s = 0; 3921 3920 u64 shaper_vft, ir_calc, ir; 3921 + u64 cir_u, cir_b, cir_s; 3922 3922 unsigned int val; 3923 3923 u32 error_rate; 3924 3924 int ret;