summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2015-08-15 10:16:14 -0400
committerDoug Ledford <dledford@redhat.com>2015-08-30 18:12:21 -0400
commitb8071ad893841aba967b7c54e712179864cdf5c3 (patch)
tree42506078d6ae0393ceb273010552ba5ddb739ee9 /drivers
parentcc36929e736a30a291ab543b633046eb57d67e68 (diff)
downloadblackbird-op-linux-b8071ad893841aba967b7c54e712179864cdf5c3.tar.gz
blackbird-op-linux-b8071ad893841aba967b7c54e712179864cdf5c3.zip
IB/core: Remove needless bracketization
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/core/device.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c
index 7a4ee795c13e..17639117afc6 100644
--- a/drivers/infiniband/core/device.c
+++ b/drivers/infiniband/core/device.c
@@ -324,6 +324,7 @@ int ib_register_device(struct ib_device *device,
u8, struct kobject *))
{
int ret;
+ struct ib_client *client;
mutex_lock(&device_mutex);
@@ -361,13 +362,9 @@ int ib_register_device(struct ib_device *device,
device->reg_state = IB_DEV_REGISTERED;
- {
- struct ib_client *client;
-
- list_for_each_entry(client, &client_list, list)
- if (client->add && !add_client_context(device, client))
- client->add(device);
- }
+ list_for_each_entry(client, &client_list, list)
+ if (client->add && !add_client_context(device, client))
+ client->add(device);
down_write(&lists_rwsem);
list_add_tail(&device->core_list, &device_list);
OpenPOWER on IntegriCloud