From patchwork Fri May 10 11:38:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2549431 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 C0A15DF2A2 for ; Fri, 10 May 2013 11:51:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751583Ab3EJLvk (ORCPT ); Fri, 10 May 2013 07:51:40 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:57402 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751511Ab3EJLvj (ORCPT ); Fri, 10 May 2013 07:51:39 -0400 Received: by mail-pd0-f174.google.com with SMTP id u10so2731835pdi.33 for ; Fri, 10 May 2013 04:51:39 -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=EN6BbjsW+ZcrKrB9RgO1LA7UWjkmReh8k3sRzG/W/rA=; b=h1XLr0XwuocIHWroyfMwXHYHYcDOF09uFxNxVhYUCi9HdzX9H4rh3XFw4k1lr5b6tJ XhWLraUFANQFIHU/uUbyC4v6e8yHkH/gwRGblTgRS55McmKtyIux/mW5YN42ZwDkfRem x7pjnWw2LV/wT8adtTB05e4s9E/kqBIRbnU3D4y1vFRRvpH9m9Q5BTjyQ1EKL29/9x0o SQ8l2zJwYyyHYVUCXsuNAOKSWOYTrp6zEhHDTAJqkad305kW/7BR8Ye3d2trs5HTJPMJ +G3TD9C141zHTxm0L0qnNfmgKpeHumY0JBBsP8z/kgcwpZ5dbAxmMQMzPkYCzGmYL+nB KO1w== X-Received: by 10.68.237.74 with SMTP id va10mr17025687pbc.76.1368186699231; Fri, 10 May 2013 04:51:39 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id aj2sm2471954pbc.1.2013.05.10.04.51.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 May 2013 04:51:38 -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/1] video: udlfb: Use NULL instead of 0 Date: Fri, 10 May 2013 17:08:26 +0530 Message-Id: <1368185906-13351-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQmXG1ULmLoS4PCQA++TPaLNgNeuUS65l0s9gegWov/uuR/N7/2oVah/GHYnki99sglAhxfM Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 'dev' is a pointer. Use NULL instead of 0. Signed-off-by: Sachin Kamat --- 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 ec03e72..04eadc6 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c @@ -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 */