From patchwork Wed Oct 20 09:34:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ruslanpisarev@gmail.com X-Patchwork-Id: 268241 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 o9K9Ydsa031324 for ; Wed, 20 Oct 2010 09:34:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752268Ab0JTJeb (ORCPT ); Wed, 20 Oct 2010 05:34:31 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:43634 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751888Ab0JTJeb (ORCPT ); Wed, 20 Oct 2010 05:34:31 -0400 Received: by bwz10 with SMTP id 10so1122571bwz.19 for ; Wed, 20 Oct 2010 02:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=n5IRcwMoe5gU9PbVuTNfLxFy3HqknWh4Q05dApwVSck=; b=FBrSLex2Iyw0T4Pkn8UNqVE7bi42umonoXQ/ZgJN1Ao7d1Gvj4ZDtHRrHUYdpPTwBB zrtYf3ER0FtRdLOHfT4xI1dx7AOdOsn5chKLUeQl+kgHIk598Ad8a0yst79+2/VTmgkq EkgSHbQYLUJ5gloustiE3pgnAC++HjVRlLxpw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=T8jmteTcXIkLGr4xS14/03ttu8V4GkfZRQ8KUVuQs6jmXyvLhYyYkbV6Kuq9FQsfZC 9AxPMnU1RWJ4lwEwO+SGZ5tQYOg+Vy4eVWMXVnGxB7x7aedUpRtjmwy3DncHQ3stQ70e DjdA89jfY9cjrIKZmxQr0vRV0cHzO4Qw8RvI8= Received: by 10.204.123.132 with SMTP id p4mr6655521bkr.67.1287567269489; Wed, 20 Oct 2010 02:34:29 -0700 (PDT) Received: from localhost.localdomain ([109.254.0.19]) by mx.google.com with ESMTPS id a25sm16806052bks.8.2010.10.20.02.34.27 (version=SSLv3 cipher=RC4-MD5); Wed, 20 Oct 2010 02:34:27 -0700 (PDT) From: Ruslan Pisarev To: linux-media@vger.kernel.org Cc: Ruslan Pisarev Subject: [PATCH 1/6] Staging: tm6000: fix macros coding style issue and initialise statics to 0 in tm6000-core.c Date: Wed, 20 Oct 2010 12:34:18 +0300 Message-Id: <1287567258-18601-1-git-send-email-ruslan@rpisarev.org.ua> X-Mailer: git-send-email 1.7.0.4 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.3 (demeter1.kernel.org [140.211.167.41]); Wed, 20 Oct 2010 09:34:40 +0000 (UTC) diff --git a/drivers/staging/tm6000/tm6000-core.c b/drivers/staging/tm6000/tm6000-core.c index cded411..9c0bf84 100644 --- a/drivers/staging/tm6000/tm6000-core.c +++ b/drivers/staging/tm6000/tm6000-core.c @@ -30,14 +30,14 @@ #include #include -#define USB_TIMEOUT 5*HZ /* ms */ +#define USB_TIMEOUT (5*HZ) /* ms */ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req, u16 value, u16 index, u8 *buf, u16 len) { int ret, i; unsigned int pipe; - static int ini = 0, last = 0, n = 0; + static int ini, last, n; u8 *data = NULL; if (len)