Commit 5784cfb2 authored by Qinglang Miao's avatar Qinglang Miao Committed by Herbert Xu

crypto: marvell/octeontx - simplify the return expression of create_sysfs_eng_grps_info()

Simplify the return expression.
Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent e356c49c
...@@ -824,18 +824,12 @@ static ssize_t eng_grp_info_show(struct device *dev, ...@@ -824,18 +824,12 @@ static ssize_t eng_grp_info_show(struct device *dev,
static int create_sysfs_eng_grps_info(struct device *dev, static int create_sysfs_eng_grps_info(struct device *dev,
struct otx_cpt_eng_grp_info *eng_grp) struct otx_cpt_eng_grp_info *eng_grp)
{ {
int ret;
eng_grp->info_attr.show = eng_grp_info_show; eng_grp->info_attr.show = eng_grp_info_show;
eng_grp->info_attr.store = NULL; eng_grp->info_attr.store = NULL;
eng_grp->info_attr.attr.name = eng_grp->sysfs_info_name; eng_grp->info_attr.attr.name = eng_grp->sysfs_info_name;
eng_grp->info_attr.attr.mode = 0440; eng_grp->info_attr.attr.mode = 0440;
sysfs_attr_init(&eng_grp->info_attr.attr); sysfs_attr_init(&eng_grp->info_attr.attr);
ret = device_create_file(dev, &eng_grp->info_attr); return device_create_file(dev, &eng_grp->info_attr);
if (ret)
return ret;
return 0;
} }
static void ucode_unload(struct device *dev, struct otx_cpt_ucode *ucode) static void ucode_unload(struct device *dev, struct otx_cpt_ucode *ucode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment