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: 9928 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 48F4E23E57 for ; Tue, 10 Jul 2012 11:15:08 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 06AD4A18037 for ; Tue, 10 Jul 2012 11:15:07 +0000 (UTC) Received: by yenq6 with SMTP id q6so11874395yen.11 for ; Tue, 10 Jul 2012 04:15:07 -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=V6n+zmm5mmhlSpcu1XPKURk176Sbd5Et6l43pgnG7Bc=; b=K2dGTTE7NJGds5qVmZjRrIb63QnzrHh+TS5r2VXHT/HqCmhJ46JVooy4TygVER+BnG ooiTdMgcOF0JqiCoLoBf4h+zUmIn/p6981UDRWqxeLlo5PK1x8uGjDjKAm5EPfOHxoCz iNG3+KUnldlLI1c3FVuTP/8jn6f7Z1cRwQj/Kl6ru0MluBw/tV3/ihMiwq84Nb+fnq8S bBHhU3ee1ucGI4XBIV1g1jdBNz+LyaHe4KrzW7bIUGCIWAq/W90aAQ/9DFmWD5Pd+GQw IwZCJRN+WQUkKXUuhKPCyMNjWkEaSoq1KY64OArJX8sHL1BADpC4090xnSF/GvaLIYZb Np8Q== Received: by 10.50.163.99 with SMTP id yh3mr10664003igb.53.1341918907404; Tue, 10 Jul 2012 04:15:07 -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.231.24.148 with SMTP id v20csp47848ibb; Tue, 10 Jul 2012 04:15:06 -0700 (PDT) Received: by 10.66.76.103 with SMTP id j7mr72833746paw.60.1341918905719; Tue, 10 Jul 2012 04:15:05 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id ue4si61126503pbc.243.2012.07.10.04.15.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Jul 2012 04:15:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.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 pbbrr4 with SMTP id rr4so159537pbb.37 for ; Tue, 10 Jul 2012 04:15:05 -0700 (PDT) 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: ALoCoQmbHCFjBGMo/Zz2dLGuOUAZYfB+wDZsl7hLEmBnAA6ucFFpY1+GB+NzndaUghcp0zED1Mk/ 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;