Skip to content

Commit

Permalink
PCI/MSI: Remove unused kobject from struct msi_desc
Browse files Browse the repository at this point in the history
After commit 1c51b50 ("PCI/MSI: Export MSI mode using attributes, not
kobjects"), the kobject in struct msi_desc is unused.

Remove the unused struct kobject from struct msi_desc.

[bhelgaas: changelog]
Fixes: 1c51b50 ("PCI/MSI: Export MSI mode using attributes, not kobjects")
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Yijing Wang authored and Bjorn Helgaas committed Oct 1, 2014
1 parent a06cd74 commit 8105276
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,17 +374,6 @@ static void free_msi_irqs(struct pci_dev *dev)
iounmap(entry->mask_base);
}

/*
* Its possible that we get into this path
* When populate_msi_sysfs fails, which means the entries
* were not registered with sysfs. In that case don't
* unregister them.
*/
if (entry->kobj.parent) {
kobject_del(&entry->kobj);
kobject_put(&entry->kobj);
}

list_del(&entry->list);
kfree(entry);
}
Expand Down
2 changes: 0 additions & 2 deletions include/linux/msi.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ struct msi_desc {

/* Last set MSI message */
struct msi_msg msg;

struct kobject kobj;
};

/*
Expand Down

0 comments on commit 8105276

Please sign in to comment.