From patchwork Fri May 10 11:46:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2549441 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id F2C13DF2A2 for ; Fri, 10 May 2013 12:00:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751152Ab3EJMAI (ORCPT ); Fri, 10 May 2013 08:00:08 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:34378 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119Ab3EJMAH (ORCPT ); Fri, 10 May 2013 08:00:07 -0400 Received: by mail-pa0-f44.google.com with SMTP id jh10so2897744pab.17 for ; Fri, 10 May 2013 05:00:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=9qFD6fG8tPcANOPThx3XIiLIqgdG13xdgPdrfdIFZOY=; b=YKdxZIPUvZAlv1QkmCrNPCo2BErxGiICyhUT+k92W/GxNphcb+h++Q+YrCEKzhfw3l 45G00w2SVr/eLPp3WZww60V2DvwlW63MIg8teewyqnJnANymTPXfBCJowc4FLCqUuR5x uN1jJrlr+IzwB5aKGEZYAs5QvyRMm/pCd5kwdmPoBqA7hN16JKr3ONbU5XDpBiuvS9yw 21vQ+eipFIz+hqmwJdjPt73ryYriVkPKFbGpGw5Zy4DnvEFi2Gqh9GVqZwxDVFKezX++ 5VcRqTlfV1JJ4s0itPxMTHxKy5MAp9NispJVS3tXjIUMu3ffKw51ux8w9Wl51HK5kxwv Hdxw== X-Received: by 10.66.253.74 with SMTP id zy10mr17375865pac.123.1368187207020; Fri, 10 May 2013 05:00:07 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id fn2sm2479580pbc.15.2013.05.10.05.00.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 May 2013 05:00:06 -0700 (PDT) From: Sachin Kamat To: linux-fbdev@vger.kernel.org Cc: bernie@plugable.com, tomi.valkeinen@ti.com, akpm@linux-foundation.org, sachin.kamat@linaro.org, FlorianSchandinat@gmx.de Subject: [PATCH 1/2] video: udlfb: Use NULL instead of 0 Date: Fri, 10 May 2013 17:16:48 +0530 Message-Id: <1368186409-30709-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlNkLOkD1Qjb3JMUZ9etqoLnFCtnoUSTF6Jjt+tgDfdGw2C+DOHy+I9ZOzWxVvA5+Roy9tL Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Pointer variables should be initialized with NULL instead of 0. Signed-off-by: Sachin Kamat --- drivers/video/udlfb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c index ec03e72..20353a6 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c @@ -434,10 +434,10 @@ static void dlfb_compress_hline( while ((pixel_end > pixel) && (cmd_buffer_end - MIN_RLX_CMD_BYTES > cmd)) { - uint8_t *raw_pixels_count_byte = 0; - uint8_t *cmd_pixels_count_byte = 0; - const uint16_t *raw_pixel_start = 0; - const uint16_t *cmd_pixel_start, *cmd_pixel_end = 0; + uint8_t *raw_pixels_count_byte = NULL; + uint8_t *cmd_pixels_count_byte = NULL; + const uint16_t *raw_pixel_start = NULL; + const uint16_t *cmd_pixel_start, *cmd_pixel_end = NULL; prefetchw((void *) cmd); /* pull in one cache line at least */ @@ -1588,7 +1588,7 @@ static int dlfb_usb_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct usb_device *usbdev; - struct dlfb_data *dev = 0; + struct dlfb_data *dev = NULL; int retval = -ENOMEM; /* usb initialization */