diff options
-rw-r--r-- | drivers/infiniband/core/user_mad.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c index 6babb72b39fc..5fa856909511 100644 --- a/drivers/infiniband/core/user_mad.c +++ b/drivers/infiniband/core/user_mad.c | |||
@@ -1085,7 +1085,6 @@ err_cdev: | |||
1085 | static void ib_umad_kill_port(struct ib_umad_port *port) | 1085 | static void ib_umad_kill_port(struct ib_umad_port *port) |
1086 | { | 1086 | { |
1087 | struct ib_umad_file *file; | 1087 | struct ib_umad_file *file; |
1088 | int already_dead; | ||
1089 | int id; | 1088 | int id; |
1090 | 1089 | ||
1091 | dev_set_drvdata(port->dev, NULL); | 1090 | dev_set_drvdata(port->dev, NULL); |
@@ -1103,7 +1102,6 @@ static void ib_umad_kill_port(struct ib_umad_port *port) | |||
1103 | 1102 | ||
1104 | list_for_each_entry(file, &port->file_list, port_list) { | 1103 | list_for_each_entry(file, &port->file_list, port_list) { |
1105 | mutex_lock(&file->mutex); | 1104 | mutex_lock(&file->mutex); |
1106 | already_dead = file->agents_dead; | ||
1107 | file->agents_dead = 1; | 1105 | file->agents_dead = 1; |
1108 | mutex_unlock(&file->mutex); | 1106 | mutex_unlock(&file->mutex); |
1109 | 1107 | ||