mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
IB/umad: Remove unused-but-set variable 'already_dead'
Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
589643be66
commit
f400e5b38a
1 changed files with 0 additions and 2 deletions
|
@ -1085,7 +1085,6 @@ err_cdev:
|
||||||
static void ib_umad_kill_port(struct ib_umad_port *port)
|
static void ib_umad_kill_port(struct ib_umad_port *port)
|
||||||
{
|
{
|
||||||
struct ib_umad_file *file;
|
struct ib_umad_file *file;
|
||||||
int already_dead;
|
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
dev_set_drvdata(port->dev, NULL);
|
dev_set_drvdata(port->dev, NULL);
|
||||||
|
@ -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) {
|
list_for_each_entry(file, &port->file_list, port_list) {
|
||||||
mutex_lock(&file->mutex);
|
mutex_lock(&file->mutex);
|
||||||
already_dead = file->agents_dead;
|
|
||||||
file->agents_dead = 1;
|
file->agents_dead = 1;
|
||||||
mutex_unlock(&file->mutex);
|
mutex_unlock(&file->mutex);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue