From patchwork Wed Sep 25 11:29:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2941831 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3672C9F2B8 for ; Wed, 25 Sep 2013 11:30:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2876E203F4 for ; Wed, 25 Sep 2013 11:29:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E39D2203E8 for ; Wed, 25 Sep 2013 11:29:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755176Ab3IYL35 (ORCPT ); Wed, 25 Sep 2013 07:29:57 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:46649 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755040Ab3IYL34 (ORCPT ); Wed, 25 Sep 2013 07:29:56 -0400 Received: by mail-pa0-f48.google.com with SMTP id bj1so5048207pad.21 for ; Wed, 25 Sep 2013 04:29:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=M+opOwSsDSR8Cier3H+DUK1WfUudKtNIFwG9X4IdvtI=; b=AAF5huvneLygh1vhqhMYOl1fOk1zkr6aVIxbE+1aVrZMjIinVPHG8SzRITR1AfqGag 6Hb2iS0lF4jGcPFsmzr3OpXfmT0d2fbQiaKuC4xV+5N2lcS0VACfRkGIisG7QKWTeoCn PLER0SCvQLZfOHWzvgMZkxwNnQjtL0mI9x9+XPnOdAN8ujSPWQamW6eSTr6R5kpak1bC UjMecNmyCx8nJVARFP459SQ/yNAglZLnRJuDEgMAtN047sfqpip4X1Xv9DqWdt9wd17X oqa+VHuKVTZa3ibGyBv9G7KHjCXrqPOl9vY7O7jByhLkH+/FoPzyQEfT4PC6zUr2mHPn xeIw== X-Gm-Message-State: ALoCoQndPFnKJYLqykTBWkNhzmsEdCEZEsZzVo4VgcJhWvMV5zc9/5mZ1yLmd3BslSmO4L/sMSqJ X-Received: by 10.68.90.129 with SMTP id bw1mr32531937pbb.111.1380108596525; Wed, 25 Sep 2013 04:29:56 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id fy4sm47095730pbb.1.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Sep 2013 04:29:55 -0700 (PDT) From: Sachin Kamat To: linux-fbdev@vger.kernel.org Cc: plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, sachin.kamat@linaro.org, Bernie Thompson Subject: [PATCH 1/6] video: udlfb: Use NULL instead of 0 Date: Wed, 25 Sep 2013 16:59:49 +0530 Message-Id: <1380108594-19090-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP new_back is a pointer. Use NULL instead of 0. Signed-off-by: Sachin Kamat Cc: Bernie Thompson --- drivers/video/udlfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c index d2e5bc3..025f14e 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c @@ -1166,7 +1166,7 @@ static int dlfb_realloc_framebuffer(struct dlfb_data *dev, struct fb_info *info) int new_len; unsigned char *old_fb = info->screen_base; unsigned char *new_fb; - unsigned char *new_back = 0; + unsigned char *new_back = NULL; pr_warn("Reallocating framebuffer. Addresses will change!\n");