Skip to content

Commit

Permalink
NTB: Remove unused variable
Browse files Browse the repository at this point in the history
Remove unused pci_dev variable from ntb_transport_free()

Signed-off-by: Jon Mason <[email protected]>
  • Loading branch information
Jon Mason committed Sep 5, 2013
1 parent b1ef004 commit 3daa3a0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/ntb/ntb_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,6 @@ void ntb_transport_free(void *transport)
{
struct ntb_transport *nt = transport;
struct ntb_device *ndev = nt->ndev;
struct pci_dev *pdev;
int i;

nt->transport_link = NTB_LINK_DOWN;
Expand All @@ -988,8 +987,6 @@ void ntb_transport_free(void *transport)

ntb_unregister_event_callback(ndev);

pdev = ntb_query_pdev(ndev);

for (i = 0; i < ntb_max_mw(ndev); i++)
ntb_free_mw(nt, i);

Expand Down

0 comments on commit 3daa3a0

Please sign in to comment.