Re: [PATCH] fix pci_get_device conversion in intel-agp

From: Greg KH (greg_at_kroah.com)
Date: 01/09/05

  • Next message: Andreas Steinmetz: "Re: [PATCH] x86_64: Notify user of MCE events (updated)"
    Date:	Sun, 9 Jan 2005 10:29:37 -0800
    To: Christoph Hellwig <hch@lst.de>
    
    

    On Sat, Jan 08, 2005 at 08:08:15PM +0100, Christoph Hellwig wrote:
    > + if (intel_i810_private.i810_dev)
    > + pci_dev_put(intel_i810_private.i830_dev);
    > + if (intel_i810_private.i830_dev)
    > + pci_dev_put(intel_i830_private.i830_dev);

    It's legal to call pci_dev_put() with a NULL pointer, so these checks
    are not needed.

    thanks,

    greg k-h
    -
    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/


  • Next message: Andreas Steinmetz: "Re: [PATCH] x86_64: Notify user of MCE events (updated)"

    Relevant Pages