lkml.org 
[lkml]   [2009]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 07/15] NULL noise: drivers/pci/dmar.c
    Date
    Fix this sparse warning(s):
    drivers/pci/dmar.c:782:29: warning: Using plain integer as NULL pointer
    drivers/pci/dmar.c:790:29: warning: Using plain integer as NULL pointer

    Signed-off-by: Hannes Eder <hannes@hanneseder.net>
    ---
    v2: other subject, as suggested by Al Viro

    drivers/pci/dmar.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/pci/dmar.c b/drivers/pci/dmar.c
    index 5f33340..4b654b2 100644
    --- a/drivers/pci/dmar.c
    +++ b/drivers/pci/dmar.c
    @@ -779,7 +779,7 @@ int dmar_enable_qi(struct intel_iommu *iommu)
    qi->desc = (void *)(get_zeroed_page(GFP_KERNEL));
    if (!qi->desc) {
    kfree(qi);
    - iommu->qi = 0;
    + iommu->qi = NULL;
    return -ENOMEM;
    }

    @@ -787,7 +787,7 @@ int dmar_enable_qi(struct intel_iommu *iommu)
    if (!qi->desc_status) {
    free_page((unsigned long) qi->desc);
    kfree(qi);
    - iommu->qi = 0;
    + iommu->qi = NULL;
    return -ENOMEM;
    }



    \
     
     \ /
      Last update: 2009-03-05 20:23    [W:0.036 / U:0.008 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site