Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1172036
| From | Maninder Singh <maninder1.s@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/1] char/agp: remove checks around pci_dev_put |
| Date | 2015-06-25 12:10 +0200 |
| Message-ID | <pFcgA-5Bx-93@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
No need of explicit check around pci_dev_put, It handles with NULL pointer itself. Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Reviewed-by: Akhilesh Kumar <akhilesh.k@samsung.com> --- drivers/char/agp/intel-gtt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c index 0b4188b..78d35fa 100644 --- a/drivers/char/agp/intel-gtt.c +++ b/drivers/char/agp/intel-gtt.c @@ -1430,10 +1430,8 @@ void intel_gmch_remove(void) if (--intel_private.refcount) return; - if (intel_private.pcidev) - pci_dev_put(intel_private.pcidev); - if (intel_private.bridge_dev) - pci_dev_put(intel_private.bridge_dev); + pci_dev_put(intel_private.pcidev); + pci_dev_put(intel_private.bridge_dev); intel_private.driver = NULL; } EXPORT_SYMBOL(intel_gmch_remove); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 1/1] char/agp: remove checks around pci_dev_put Maninder Singh <maninder1.s@samsung.com> - 2015-06-25 12:10 +0200
csiph-web