Thread (1 message) flat view 1 message, 1 author, 2009-02-27

Re: [PATCH 10/16] viafb: fix sparse warning: Using plain integer as NULL pointer

From: Hannes Eder <hidden>
Date: 2009-02-27 01:07:42
Also in: kernel-janitors, lkml

[Added To, Cc]

On Sun, Feb 22, 2009 at 1:04 AM, Hannes Eder [off-list ref] wrote:
quoted hunk
Fix this sparse warning:
 drivers/video/via/hw.c:2020:46: warning: Using plain integer as NULL pointer

Signed-off-by: Hannes Eder <redacted>
---
 drivers/video/via/hw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c
index fcd53ce..70d6b6c 100644
--- a/drivers/video/via/hw.c
+++ b/drivers/video/via/hw.c
@@ -2017,7 +2017,7 @@ static void init_gfx_chip_info(void)
       /* Indentify GFX Chip Name */
       for (i = 0; pciidlist[i].vendor != 0; i++) {
               pdev = pci_get_device(pciidlist[i].vendor,
-                       pciidlist[i].device, 0);
+                       pciidlist[i].device, NULL);
               if (pdev)
                       break;
       }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help