sparse pointer use of zero as null
[deliverable/linux.git] / mm / hugetlb.c
index ae2959bb59cbb785c70ffa99677c6194b1d4910d..034617f8cdb2391c99b6aa615854a1b63403e71b 100644 (file)
@@ -1020,7 +1020,7 @@ static long region_chg(struct list_head *head, long f, long t)
         * size such that we can guarentee to record the reservation. */
        if (&rg->link == head || t < rg->from) {
                nrg = kmalloc(sizeof(*nrg), GFP_KERNEL);
-               if (nrg == 0)
+               if (!nrg)
                        return -ENOMEM;
                nrg->from = f;
                nrg->to   = f;
This page took 0.038252 seconds and 5 git commands to generate.