From patchwork Tue Jul 1 07:12:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Rapha=C3=ABl_Poggi?= X-Patchwork-Id: 4456861 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D979F9F26C for ; Tue, 1 Jul 2014 07:13:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E7AAF2035C for ; Tue, 1 Jul 2014 07:13:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2511520353 for ; Tue, 1 Jul 2014 07:13:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753128AbaGAHMj (ORCPT ); Tue, 1 Jul 2014 03:12:39 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:52786 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752235AbaGAHMi (ORCPT ); Tue, 1 Jul 2014 03:12:38 -0400 Received: by mail-wi0-f171.google.com with SMTP id n15so7246968wiw.16 for ; Tue, 01 Jul 2014 00:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=Z2SApxKqd+AfrtYiwi0OP7p7v7mhiBR8b5ZZ3TB9DIw=; b=JdwdIJ3XsS8nqqbn6qKi3BELyeARpqtP7Su3P7CYmwo30sNGB8szfZHEQzqqwy9UjM RgFx/Ma8FSkuXiMz9OrfeZuSv2kmNkUouq4ExWQd8+WvZ3fsrFXcOyNn8w4OhmqMSFg6 EKVp8vITPtPJAIkBBEWEDs9h5L3wfhg1DR4q1lpBAFQMmla37jFCEYAvfEz4fp7dDhc0 8/7pjczqp7kD5ApZpmnKRoLg/K66UFSwsXn0jb92MJ5iLyvhKVuEVKemxxDwFJKSM2cz xa8F21s5R4/E/bHNk6Q0xcpA6QE2LsZNM7NvGzX4qW6G0YbfCy2jzc7wy08Ad+CFn1ap Sixg== X-Received: by 10.194.186.178 with SMTP id fl18mr14215336wjc.83.1404198757090; Tue, 01 Jul 2014 00:12:37 -0700 (PDT) Received: from eROCCA26.vpn2.erocca.com (LNantes-156-76-15-113.w82-127.abo.wanadoo.fr. [82.127.166.113]) by mx.google.com with ESMTPSA id o3sm39972708wiz.24.2014.07.01.00.12.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 00:12:36 -0700 (PDT) From: Raphael Poggi To: m.chehab@samsung.com Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Raphael Poggi Subject: [PATCH 1/2 RESEND] staging: lirc: fix checkpath errors: blank lines Date: Tue, 1 Jul 2014 09:12:33 +0200 Message-Id: <1404198754-5029-1-git-send-email-poggi.raph@gmail.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fix checkpath "WARNING: Missing a blank line after declarations" Signed-off-by: Raphaƫl Poggi --- drivers/staging/media/lirc/lirc_imon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c index a5b62ee..f8c3375 100644 --- a/drivers/staging/media/lirc/lirc_imon.c +++ b/drivers/staging/media/lirc/lirc_imon.c @@ -189,6 +189,7 @@ MODULE_PARM_DESC(debug, "Debug messages: 0=no, 1=yes(default: no)"); static void free_imon_context(struct imon_context *context) { struct device *dev = context->driver->dev; + usb_free_urb(context->tx_urb); usb_free_urb(context->rx_urb); lirc_buffer_free(context->driver->rbuf); @@ -656,6 +657,7 @@ static void imon_incoming_packet(struct imon_context *context, mask = 0x80; for (bit = 0; bit < 8; ++bit) { int curr_bit = !(buf[octet] & mask); + if (curr_bit != context->rx.prev_bit) { if (context->rx.count) { submit_data(context); @@ -775,6 +777,7 @@ static int imon_probe(struct usb_interface *interface, struct usb_endpoint_descriptor *ep; int ep_dir; int ep_type; + ep = &iface_desc->endpoint[i].desc; ep_dir = ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK; ep_type = ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK;