Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 May 2009 13:32:34 +0000 (UTC)
From:      Christian Brueffer <brueffer@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192097 - head/sys/dev/iir
Message-ID:  <200905141332.n4EDWYdL092268@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brueffer
Date: Thu May 14 13:32:33 2009
New Revision: 192097
URL: http://svn.freebsd.org/changeset/base/192097

Log:
  Compare the correct variable against NULL.
  
  Reviewed by:	scottl
  Found with:	Coverity Prevent(tm)
  CID:		821
  MFC after:	2 weeks

Modified:
  head/sys/dev/iir/iir_pci.c

Modified: head/sys/dev/iir/iir_pci.c
==============================================================================
--- head/sys/dev/iir/iir_pci.c	Thu May 14 12:39:22 2009	(r192096)
+++ head/sys/dev/iir/iir_pci.c	Thu May 14 13:32:33 2009	(r192097)
@@ -202,7 +202,7 @@ iir_pci_attach(device_t dev)
     rid = 0;
     irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
                                  RF_ACTIVE | RF_SHAREABLE);
-    if (io == NULL) {
+    if (irq == NULL) {
         device_printf(dev, "can't find IRQ value\n");
         error = ENOMEM;
         goto err;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905141332.n4EDWYdL092268>