mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
IB/core: Remove needless bracketization
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
cc36929e73
commit
b8071ad893
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user