From: Chenghai Huang Date: Mon, 30 Mar 2026 06:25:29 +0000 (+0800) Subject: crypto: hisilicon/qm - remove else after return X-Git-Tag: v7.1-rc1~145^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e7619dc6a243f972aabc22c349e1f6b371fbd24;p=thirdparty%2Fkernel%2Flinux.git crypto: hisilicon/qm - remove else after return Else condition is not needed after a return, remove it. Signed-off-by: Chenghai Huang Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index d1626685ed9fe..0588355920dd8 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -4278,8 +4278,8 @@ int hisi_qm_sriov_configure(struct pci_dev *pdev, int num_vfs) { if (num_vfs == 0) return hisi_qm_sriov_disable(pdev, false); - else - return hisi_qm_sriov_enable(pdev, num_vfs); + + return hisi_qm_sriov_enable(pdev, num_vfs); } EXPORT_SYMBOL_GPL(hisi_qm_sriov_configure);