* [PATCH] pci quirks: remove redundant check
@ 2006-12-03 19:55 David Rientjes
2006-12-05 10:49 ` Brice Goglin
0 siblings, 1 reply; 2+ messages in thread
From: David Rientjes @ 2006-12-03 19:55 UTC (permalink / raw)
To: Martin Mares, Greg Kroah-Hartman; +Cc: linux-kernel
Removes redundant check for dev->subordinate; if it is NULL, the function
returns before the patch-affected code region.
Cc: Martin Mares <mj@ucw.cz>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David Rientjes <rientjes@cs.washington.edu>
---
drivers/pci/quirks.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 9ca9b9b..7571863 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -1688,8 +1688,7 @@ static void __devinit quirk_nvidia_ck804
* a single one having MSI is enough to be sure that MSI are supported.
*/
pdev = pci_get_slot(dev->bus, 0);
- if (dev->subordinate && !msi_ht_cap_enabled(dev)
- && !msi_ht_cap_enabled(pdev)) {
+ if (!msi_ht_cap_enabled(dev) && !msi_ht_cap_enabled(pdev)) {
printk(KERN_WARNING "PCI: MSI quirk detected. "
"MSI disabled on chipset %s.\n",
pci_name(dev));
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] pci quirks: remove redundant check
2006-12-03 19:55 [PATCH] pci quirks: remove redundant check David Rientjes
@ 2006-12-05 10:49 ` Brice Goglin
0 siblings, 0 replies; 2+ messages in thread
From: Brice Goglin @ 2006-12-05 10:49 UTC (permalink / raw)
To: David Rientjes; +Cc: Martin Mares, Greg Kroah-Hartman, linux-kernel
David Rientjes wrote:
> Removes redundant check for dev->subordinate; if it is NULL, the function
> returns before the patch-affected code region.
>
ACK, looks like I forgot to remove it when copy-pasting the quirk right
above it.
Brice
> Cc: Martin Mares <mj@ucw.cz>
> Cc: Greg Kroah-Hartman <gregkh@suse.de>
> Signed-off-by: David Rientjes <rientjes@cs.washington.edu>
> ---
> drivers/pci/quirks.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
> index 9ca9b9b..7571863 100644
> --- a/drivers/pci/quirks.c
> +++ b/drivers/pci/quirks.c
> @@ -1688,8 +1688,7 @@ static void __devinit quirk_nvidia_ck804
> * a single one having MSI is enough to be sure that MSI are supported.
> */
> pdev = pci_get_slot(dev->bus, 0);
> - if (dev->subordinate && !msi_ht_cap_enabled(dev)
> - && !msi_ht_cap_enabled(pdev)) {
> + if (!msi_ht_cap_enabled(dev) && !msi_ht_cap_enabled(pdev)) {
> printk(KERN_WARNING "PCI: MSI quirk detected. "
> "MSI disabled on chipset %s.\n",
> pci_name(dev));
> -
> 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/
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-05 10:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-03 19:55 [PATCH] pci quirks: remove redundant check David Rientjes
2006-12-05 10:49 ` Brice Goglin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox