Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2952374pxk; Mon, 21 Sep 2020 01:03:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsSa4mHk0L7SW66em6d7Br6rUDaKy1Dq3cCK4JeZzqQHE2c07Uwvk5tNIFpCf/9v0L7bAl X-Received: by 2002:a17:906:d94:: with SMTP id m20mr50845400eji.133.1600675420726; Mon, 21 Sep 2020 01:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675420; cv=none; d=google.com; s=arc-20160816; b=STbCYJ1b8vAHIXJQxhl4eB4K2Cj0ejMkon51HGODPyttzeDEi25L4ydxjJPQLt6UzY jRgGlqUxH4L2XKa2BBxJi+RhVRkLIJgUaTfh65GUgOX/8RGiZkUnQcfZk9fzNxj8nSMT w+hq0CH/PRTyxeThL4S5OG+OfTEs+4+FvfyG51vRtz8Uis4s7vB77iiN6agPsGFlWVef /PN34xLIDD4b7UAuDv2Ba5pmAI9+qXzlx03I+C02tExFTNsBuc+955Khq5TNuPn8WSBN SR+HVVjE343O3kuuCHxZ16UqVeTAXy7dHy1IVNAsMD/xkQ0gVdxl6G9nBrwa46mV5bk1 tysA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=p+nyiZkzINuhJspiv5sLFGUaFmllFDY3rU+3neb1ONY=; b=Kvb+H2TBGmCIroMvFfBV78IutnYI8kszhvv7i1Bopw054qV3RxWmoz3lyMScDMiO9V 4ggDX+56mqMNoVORA3kDDHtERG7lViXdKLFCERBL+JXdWrrNLpogk63noM4mG0Wa8HIC 4a6YuSdm5aLNyKYoXB8fDRjHdy6ZQi2xYWL53L6plPvYNE8eRKJ8KDd8VPWUug3Yq9NI 91pCosije1/UYKYQCM4shJvj3j1CLuf9GfEd4zPPGLWOtAl1c5K8DFMwNMnO2iP4VJd3 s2v9qvU/AvDx7pqF9k+pv3NP9iZjCZrXEfurSR+BIX1nzUH9H9CaTlYKVj9xMJA/gnGh SsYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si8142562ejy.5.2020.09.21.01.03.16; Mon, 21 Sep 2020 01:03:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbgIUICS (ORCPT + 99 others); Mon, 21 Sep 2020 04:02:18 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13784 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726405AbgIUICQ (ORCPT ); Mon, 21 Sep 2020 04:02:16 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 6E7146C3D7A003C06059; Mon, 21 Sep 2020 16:02:11 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:03 +0800 From: Liu Shixin To: George Cherian , Herbert Xu , "David S. Miller" CC: , , Liu Shixin Subject: [PATCH -next] crypto: cpt - simplify the return expression of cav_register_algs Date: Mon, 21 Sep 2020 16:24:28 +0800 Message-ID: <20200921082428.2591094-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/crypto/cavium/cpt/cptvf_algs.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/crypto/cavium/cpt/cptvf_algs.c b/drivers/crypto/cavium/cpt/cptvf_algs.c index 5af0dc2a8909..ce3b91c612f0 100644 --- a/drivers/crypto/cavium/cpt/cptvf_algs.c +++ b/drivers/crypto/cavium/cpt/cptvf_algs.c @@ -451,13 +451,7 @@ static struct skcipher_alg algs[] = { { static inline int cav_register_algs(void) { - int err = 0; - - err = crypto_register_skciphers(algs, ARRAY_SIZE(algs)); - if (err) - return err; - - return 0; + return crypto_register_skciphers(algs, ARRAY_SIZE(algs)); } static inline void cav_unregister_algs(void) -- 2.25.1