mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
RDMA/core: Correct format of braces
Do following cleanups about braces:
- Add the necessary braces to maintain context alignment.
- Fix the open '{' that is not on the same line as "switch".
- Remove braces that are not necessary for single statement blocks.
- Fix "else" that doesn't follow close brace '}'.
Link: https://lore.kernel.org/r/1617783353-48249-6-git-send-email-liweihang@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
committed by
Jason Gunthorpe
parent
f681967ae7
commit
b6eb7011f5
@@ -1074,9 +1074,8 @@ static int add_port(struct ib_core_device *coredev, int port_num)
|
||||
ret = kobject_init_and_add(&p->kobj, &port_type,
|
||||
coredev->ports_kobj,
|
||||
"%d", port_num);
|
||||
if (ret) {
|
||||
if (ret)
|
||||
goto err_put;
|
||||
}
|
||||
|
||||
p->gid_attr_group = kzalloc(sizeof(*p->gid_attr_group), GFP_KERNEL);
|
||||
if (!p->gid_attr_group) {
|
||||
@@ -1087,9 +1086,8 @@ static int add_port(struct ib_core_device *coredev, int port_num)
|
||||
p->gid_attr_group->port = p;
|
||||
ret = kobject_init_and_add(&p->gid_attr_group->kobj, &gid_attr_type,
|
||||
&p->kobj, "gid_attrs");
|
||||
if (ret) {
|
||||
if (ret)
|
||||
goto err_put_gid_attrs;
|
||||
}
|
||||
|
||||
if (device->ops.process_mad && is_full_dev) {
|
||||
p->pma_table = get_counter_table(device, port_num);
|
||||
|
||||
Reference in New Issue
Block a user