From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org,
david.vrabel@citrix.com, boris.ostrovsky@oracle.com,
jbeulich@suse.com
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: [PATCH v1 1/6] xen-pciback: Cleanup up pcistub_put_pci_dev
Date: Wed, 30 Apr 2014 09:54:06 -0400 [thread overview]
Message-ID: <1398866051-32714-2-git-send-email-konrad.wilk@oracle.com> (raw)
In-Reply-To: <1398866051-32714-1-git-send-email-konrad.wilk@oracle.com>
We are using 'psdev->dev','found_psdev->dev', and 'dev' at the
same time - and they all point to the same structure.
To keep it straight lets just use one - 'dev'.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
---
drivers/xen/xen-pciback/pci_stub.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/xen/xen-pciback/pci_stub.c b/drivers/xen/xen-pciback/pci_stub.c
index 62fcd48..5300a21 100644
--- a/drivers/xen/xen-pciback/pci_stub.c
+++ b/drivers/xen/xen-pciback/pci_stub.c
@@ -272,16 +272,16 @@ void pcistub_put_pci_dev(struct pci_dev *dev)
* and want to inhibit the user from fiddling with 'reset'
*/
pci_reset_function(dev);
- pci_restore_state(psdev->dev);
+ pci_restore_state(dev);
/* This disables the device. */
- xen_pcibk_reset_device(found_psdev->dev);
+ xen_pcibk_reset_device(dev);
/* And cleanup up our emulated fields. */
- xen_pcibk_config_free_dyn_fields(found_psdev->dev);
- xen_pcibk_config_reset_dev(found_psdev->dev);
+ xen_pcibk_config_free_dyn_fields(dev);
+ xen_pcibk_config_reset_dev(dev);
- xen_unregister_device_domain_owner(found_psdev->dev);
+ xen_unregister_device_domain_owner(dev);
spin_lock_irqsave(&found_psdev->lock, flags);
found_psdev->pdev = NULL;
--
1.8.5.3
next prev parent reply other threads:[~2014-04-30 13:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-30 13:54 [PATCH v1] Documentation and two bug-fixes for Xen pciback Konrad Rzeszutek Wilk
2014-04-30 13:54 ` Konrad Rzeszutek Wilk [this message]
2014-04-30 13:54 ` [PATCH v1 2/6] xen-pciback: First reset, then free Konrad Rzeszutek Wilk
2014-04-30 13:54 ` [PATCH v1 3/6] xen-pciback: Document when we FLR an PCI device Konrad Rzeszutek Wilk
2014-04-30 13:54 ` [PATCH v1 4/6] xen/pciback: Document when the 'unbind' and 'bind' functions are called Konrad Rzeszutek Wilk
2014-04-30 13:54 ` [PATCH v1 5/6] xen/pciback: Document the entry points for 'pcistub_put_pci_dev' Konrad Rzeszutek Wilk
2014-04-30 13:54 ` [PATCH v1 6/6] xen/pciback: Don't call xen_pcibk_config_init_dev when device de-assigned Konrad Rzeszutek Wilk
2014-04-30 14:40 ` Jan Beulich
2014-04-30 16:25 ` [PATCH v1] Documentation and two bug-fixes for Xen pciback David Vrabel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1398866051-32714-2-git-send-email-konrad.wilk@oracle.com \
--to=konrad.wilk@oracle.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=jbeulich@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®