From patchwork Tue Sep 4 08:25:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11163 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 619E623E54 for ; Tue, 4 Sep 2012 08:27:52 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 48492A187F4 for ; Tue, 4 Sep 2012 08:27:02 +0000 (UTC) Received: by iafj25 with SMTP id j25so8000689iaf.11 for ; Tue, 04 Sep 2012 01:27:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=XLzJ9fgjmZ7YtK2gZRA+k+/SqmZyYrSk53YsK6POTGo=; b=Jj+xdfJSmcTCER1vTXlGoHZqQBm2Mx6fVA7H2Ulofdlq+SE9NBcRzquBCN4GibOZeC UlXKFI3an+E8//kXRRAZPVvI0X1DodIrVLgm0uBuQTUFoNbjsj13rVBmloBIty24M/+b AL83z1fGGlOd4GXTfk5gtgDaYaa94h6v9sAkC80wqDVzoMbY5ZNt10JgnyapyeGM66l7 MlVuZotRgvqY5YR1Pz4nogKnS3wOZpiNFLTRjWS1K5uWdYIAURzG0Q36hUHADk3h5Z9z 8cWTJ7ZIeZS60Yr5aCEiW8n8WUR7B9hZfrMKJV93qZhZuHnFzjmRUJzhFb3bzZ89MSbP KA2w== Received: by 10.50.191.227 with SMTP id hb3mr3192313igc.43.1346747271293; Tue, 04 Sep 2012 01:27:51 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp176174igc; Tue, 4 Sep 2012 01:27:50 -0700 (PDT) Received: by 10.68.234.98 with SMTP id ud2mr43595043pbc.165.1346747270748; Tue, 04 Sep 2012 01:27:50 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id iq5si26331347pbc.164.2012.09.04.01.27.50 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Sep 2012 01:27:50 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by dade7 with SMTP id e7so4611525dad.37 for ; Tue, 04 Sep 2012 01:27:50 -0700 (PDT) Received: by 10.68.197.70 with SMTP id is6mr43664790pbc.64.1346747270215; Tue, 04 Sep 2012 01:27:50 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ho7sm11734216pbc.3.2012.09.04.01.27.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Sep 2012 01:27:49 -0700 (PDT) From: Sachin Kamat To: linux-mm@kvack.org Cc: sachin.kamat@linaro.org, patches@linaro.org, Tejun Heo , Andrew Morton , Ingo Molnar Subject: [PATCH] mm/memblock: Replace 0 with NULL for pointer Date: Tue, 4 Sep 2012 13:55:05 +0530 Message-Id: <1346747105-658-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmmN9g+ABc+3NBVRuAFkrM7DGCTMhWwNccC3JK3Mq/3vMm9Cr8nCETFAXhu7eR1GD5Ul40e Silences the following sparse warning: mm/memblock.c:249:49: warning: Using plain integer as NULL pointer Cc: Tejun Heo Cc: Andrew Morton Cc: Ingo Molnar Signed-off-by: Sachin Kamat Acked-by: Tejun Heo --- mm/memblock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index 4d9393c..82aa349 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -246,7 +246,7 @@ static int __init_memblock memblock_double_array(struct memblock_type *type, min(new_area_start, memblock.current_limit), new_alloc_size, PAGE_SIZE); - new_array = addr ? __va(addr) : 0; + new_array = addr ? __va(addr) : NULL; } if (!addr) { pr_err("memblock: Failed to double %s array from %ld to %ld entries !\n",