Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3137487pxk; Mon, 21 Sep 2020 06:16:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyQPiCUxImBw6tEwnTmse2sENSf0OCxZSoGPOqjIGzGXQCpX5ShXXR+AjhAefd/BZYd6xI X-Received: by 2002:a17:906:364b:: with SMTP id r11mr48815899ejb.48.1600694178650; Mon, 21 Sep 2020 06:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600694178; cv=none; d=google.com; s=arc-20160816; b=tRtPVcYhrdNUqpH80BXEzovsPf/N734NA9Fn0HNzMvL6NdbZ9FNnAhxf8MZItEEG3w ksR9DZHqq17RA+C0k+4yPC2+dP2gm3xiPu63erB55Hk+IFZ71YJ8OCoPu9MK6BLDd9Sp 91KlF4/+9AB9wjXJnr1QZltRgRnGN7vyohFQzw8emXi4IMtTP0ydfKL8seYt7ItqaQN/ 78OCcxcycn9bHnL8bGSmCNETeAeXvQhnfN5JLsd8yhjMDZ7adELZw3sQNpecc1Y5CxFU PH7slOL2YG3JxGFnFglSLqbTiXCO/+ie6AIrw8zEiQKVoOdHBY1qjsvs1hPX2cWPxkwH hq6w== 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=Z82yv934+Dxguc5EAqzEu7qayHOQZQCsuaW+thGdueM=; b=m6HFLZ5ymd2xoXJDmn2KEHu41XjMqqVhuf5UCALL60qvpuAtkwmPWupzOKjjMDJG95 tMyjRou99mUHzfjGbG8OBtLKiYwiHxG/m1L8rSutcZ5viuUs/lGyhlvWjzxzh1+bT5hd n8QHO4eZWOUB6Vhq4PQrW+rCghbwfQB48GBhrqqA6cHyHF+eivgyCbMXCunWziDv/FA2 Wycur0vkWjGbTP7zH+OSxj+NPneLhbZAd77MClf8iGGHG1tTlJTkiBw8aZW4zKutFLSg H7uv38RDBKvtsxTfk84YS0ScBdolqMnBGRErpCQejzMM2eC0CpG2Pq9f1ZrhWXAz4yvj VZJw== 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 dt15si8287746ejb.22.2020.09.21.06.15.49; Mon, 21 Sep 2020 06:16:18 -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 S1727134AbgIUNJ7 (ORCPT + 99 others); Mon, 21 Sep 2020 09:09:59 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13751 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726417AbgIUNJ4 (ORCPT ); Mon, 21 Sep 2020 09:09:56 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 99B166ED5E66D7E0C04D; Mon, 21 Sep 2020 21:09:53 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:09:43 +0800 From: Qinglang Miao To: Boris Brezillon , Arnaud Ebalard , Srujana Challa , Herbert Xu CC: "David S. Miller" , , , Qinglang Miao Subject: [PATCH -next] crypto: marvell/octeontx - simplify the return expression of create_sysfs_eng_grps_info() Date: Mon, 21 Sep 2020 21:10:07 +0800 Message-ID: <20200921131007.91145-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c b/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c index cc103b1bc..40b482198 100644 --- a/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c +++ b/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c @@ -824,18 +824,12 @@ static ssize_t eng_grp_info_show(struct device *dev, static int create_sysfs_eng_grps_info(struct device *dev, struct otx_cpt_eng_grp_info *eng_grp) { - int ret; - eng_grp->info_attr.show = eng_grp_info_show; eng_grp->info_attr.store = NULL; eng_grp->info_attr.attr.name = eng_grp->sysfs_info_name; eng_grp->info_attr.attr.mode = 0440; sysfs_attr_init(&eng_grp->info_attr.attr); - ret = device_create_file(dev, &eng_grp->info_attr); - if (ret) - return ret; - - return 0; + return device_create_file(dev, &eng_grp->info_attr); } static void ucode_unload(struct device *dev, struct otx_cpt_ucode *ucode) -- 2.23.0