From patchwork Sat Mar 26 01:55:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 665471 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2Q1tpPu002093 for ; Sat, 26 Mar 2011 01:55:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934299Ab1CZBzt (ORCPT ); Fri, 25 Mar 2011 21:55:49 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:61105 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934174Ab1CZBzs (ORCPT ); Fri, 25 Mar 2011 21:55:48 -0400 Received: by pxi2 with SMTP id 2so326505pxi.10 for ; Fri, 25 Mar 2011 18:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=5yVEuK7D589hkuSYqPhdARbi43YRFlRbCRYiyfQ/OE0=; b=G6mSLB24GGpTtQp//4WmDoCB7dGgPd+RcXUtjt/OiZP2CzrXAId2gFLbuyvkiEWmGg 7jw3CsC+wPeIinwxBdw54tNyyfuLDxn5nZ+PFA6/WhnSMlFJ6juex6EJNxN7K6DDX6Tn T1IoEJlvkn3dNIO8wwMTSVaBMdX12FoGuKkgk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=bJyxWcv7d7cqv7ghZ1Q0QOU8/oqML5Nwpg9lOXxr+PPvyetw2nwMEYTwOxFJ2j8NXR Lm8eY3i9qoP0xS5RYprWfqRH8ox0y+hDnmL3hVZNmNQGX46nd7Uvwll2PqAqd67fZOSP Rb3/k+aG5M4W4mrSn57Ud0HVSKgjQGGizZeD8= Received: by 10.142.113.16 with SMTP id l16mr1138853wfc.97.1301104547923; Fri, 25 Mar 2011 18:55:47 -0700 (PDT) Received: from bicker ([212.49.88.34]) by mx.google.com with ESMTPS id m10sm2075887wfl.23.2011.03.25.18.55.41 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Mar 2011 18:55:47 -0700 (PDT) Date: Sat, 26 Mar 2011 04:55:30 +0300 From: Dan Carpenter To: Mike Isely Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 6/6] [media] pvrusb2: replace !0 with 1 Message-ID: <20110326015530.GK2008@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 26 Mar 2011 01:55:51 +0000 (UTC) diff --git a/drivers/media/video/pvrusb2/pvrusb2-std.c b/drivers/media/video/pvrusb2/pvrusb2-std.c index 9bebc08..ca4f67b 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-std.c +++ b/drivers/media/video/pvrusb2/pvrusb2-std.c @@ -158,7 +158,7 @@ int pvr2_std_str_to_id(v4l2_std_id *idPtr, const char *buf, cnt++; buf += cnt; buf_size -= cnt; - mMode = !0; + mMode = 1; cmsk = sp->id; continue; } @@ -190,7 +190,7 @@ int pvr2_std_str_to_id(v4l2_std_id *idPtr, const char *buf, if (idPtr) *idPtr = id; - return !0; + return 1; } unsigned int pvr2_std_id_to_str(char *buf, unsigned int buf_size, @@ -217,10 +217,10 @@ unsigned int pvr2_std_id_to_str(char *buf, unsigned int buf_size, buf_size -= c2; buf += c2; } - cfl = !0; + cfl = 1; c2 = scnprintf(buf, buf_size, "%s-", gp->name); - gfl = !0; + gfl = 1; } else { c2 = scnprintf(buf, buf_size, "/"); } @@ -315,7 +315,7 @@ static int pvr2_std_fill(struct v4l2_standard *std, v4l2_std_id id) std->name[bcnt] = 0; pvr2_trace(PVR2_TRACE_STD, "Set up standard idx=%u name=%s", std->index, std->name); - return !0; + return 1; } /*