From patchwork Tue Jul 10 11:14:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 1177021 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C06F840B37 for ; Tue, 10 Jul 2012 11:15:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754953Ab2GJLPH (ORCPT ); Tue, 10 Jul 2012 07:15:07 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:40177 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754052Ab2GJLPG (ORCPT ); Tue, 10 Jul 2012 07:15:06 -0400 Received: by pbbrp8 with SMTP id rp8so132133pbb.19 for ; Tue, 10 Jul 2012 04:15:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=V6n+zmm5mmhlSpcu1XPKURk176Sbd5Et6l43pgnG7Bc=; b=cKeNt5CmxtCzymTlcGn8u0FUzxShTRiwqrEQZWnzpepHduDjuTGrXUUhxIwcucr4va N1J4k/8DUwfkF8IJSaqgNP1IFtaQmD4r5XktYIfOhMk7c+0mW8/M/ZE+9nAPXeUk/rII FpEDSZfMWf7qoxobZPhar8h6n8L9YQvLr3U3fzWbj+K6sifDnX4VAfuBlYKC3eJcnvMX YpPUPrUBf5x49gTBZ2XH7oAKbM0hf2a9IDQIuI9fRVhPgV3y0Zlupu7FexpQjsltLwxk Z4V9BSrtd6ZZKNJqkg3LIjgg1NuQQG/h1cMa2satZ4rhgkHdzRxSCjbTm0nWRM06KEAR loYA== Received: by 10.68.225.231 with SMTP id rn7mr47530741pbc.13.1341918905304; Tue, 10 Jul 2012 04:15:05 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id og4sm29689205pbb.48.2012.07.10.04.15.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Jul 2012 04:15:04 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: mchehab@infradead.org, g.liakhovetski@gmx.de, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] [media] V4L: Use NULL pointer instead of plain integer in v4l2-ctrls.c file Date: Tue, 10 Jul 2012 16:44:46 +0530 Message-Id: <1341918886-7911-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkNQYfMCPVlgffuVj6YqhCFJxNHajfCWEgm4QWCxTpbkYdtbR0lWsoP3CS5iin74wMioEL+ Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Fixes the following sparse warning: drivers/media/video/v4l2-ctrls.c:2123:43: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat Acked-by: Hans Verkuil --- drivers/media/video/v4l2-ctrls.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c index 9abd9ab..18101d6 100644 --- a/drivers/media/video/v4l2-ctrls.c +++ b/drivers/media/video/v4l2-ctrls.c @@ -2120,7 +2120,7 @@ static int prepare_ext_ctrls(struct v4l2_ctrl_handler *hdl, /* First zero the helper field in the master control references */ for (i = 0; i < cs->count; i++) - helpers[i].mref->helper = 0; + helpers[i].mref->helper = NULL; for (i = 0, h = helpers; i < cs->count; i++, h++) { struct v4l2_ctrl_ref *mref = h->mref;