From: Doug Ledford Date: Sat, 15 Aug 2015 14:16:14 +0000 (-0400) Subject: IB/core: Remove needless bracketization X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b8071ad893841aba967b7c54e712179864cdf5c3;p=linux-beck.git IB/core: Remove needless bracketization Signed-off-by: Doug Ledford --- 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);