IB/core: Remove needless bracketization

Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Doug Ledford 2015-08-15 10:16:14 -04:00
parent cc36929e73
commit b8071ad893

View File

@ -324,6 +324,7 @@ int ib_register_device(struct ib_device *device,
u8, struct kobject *)) u8, struct kobject *))
{ {
int ret; int ret;
struct ib_client *client;
mutex_lock(&device_mutex); mutex_lock(&device_mutex);
@ -361,13 +362,9 @@ int ib_register_device(struct ib_device *device,
device->reg_state = IB_DEV_REGISTERED; device->reg_state = IB_DEV_REGISTERED;
{ list_for_each_entry(client, &client_list, list)
struct ib_client *client; 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); down_write(&lists_rwsem);
list_add_tail(&device->core_list, &device_list); list_add_tail(&device->core_list, &device_list);