Skip to content

Commit

Permalink
IB/umad: Remove unused-but-set variable 'already_dead'
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Roland Dreier committed Jul 14, 2010
1 parent 589643b commit f400e5b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/infiniband/core/user_mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,6 @@ static int ib_umad_init_port(struct ib_device *device, int port_num,
static void ib_umad_kill_port(struct ib_umad_port *port)
{
struct ib_umad_file *file;
int already_dead;
int id;

dev_set_drvdata(port->dev, NULL);
Expand All @@ -1103,7 +1102,6 @@ static void ib_umad_kill_port(struct ib_umad_port *port)

list_for_each_entry(file, &port->file_list, port_list) {
mutex_lock(&file->mutex);
already_dead = file->agents_dead;
file->agents_dead = 1;
mutex_unlock(&file->mutex);

Expand Down

0 comments on commit f400e5b

Please sign in to comment.