From patchwork Fri Jun 24 05:39:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9196661 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 69A58608A7 for ; Fri, 24 Jun 2016 05:40:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BB4528489 for ; Fri, 24 Jun 2016 05:40:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 502EC28491; Fri, 24 Jun 2016 05:40:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F220628489 for ; Fri, 24 Jun 2016 05:40:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751379AbcFXFki (ORCPT ); Fri, 24 Jun 2016 01:40:38 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36112 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751249AbcFXFk1 (ORCPT ); Fri, 24 Jun 2016 01:40:27 -0400 Received: by mail-wm0-f65.google.com with SMTP id c82so2174028wme.3 for ; Thu, 23 Jun 2016 22:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=ZwmX58xx02t56hsAWhMgnDHt1vGOim7NNLSOZTWvh1s=; b=mKrI4gOeLWLFtrsLOF/DgUBGqtyuNCCiaS7P+QDOouSU/Zafb0JDKOn2SJWrcSljhr 7iomL78bSlH20Qou5myKXBFiSQtnGJ+WluJywe2NHUpm71bphvPOzRpNGho0B94KJfl+ FGCxybaShJKeBkgDmF2AtcDSSlK3G9RWu3win3/99mhN/cNiSWobpMErwObfdb10EgMk uUT0oO1sx8yEgnski2Faz955qQu9HCa9x1sCvJQQxGs0zfR7oudoj8uNmlC7X5KF3Djn l6h2ivVAUsayUJ46JJ4jC+65zSraV/yL4qJpQCXYyK/EH8o6P5qsP9F8IGPDWc5hVAEv 2r8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=ZwmX58xx02t56hsAWhMgnDHt1vGOim7NNLSOZTWvh1s=; b=A/5F2jMf1LMOKO8G4GnrNYRVm0vFKYXwOftkHG0u1vHiCBGjxhxRHEuRifVYuDESsp VW0LwATBTFBfwl9dp2t0E18G7j40XVDtUaH9fcmEjDOP+YLUBJr3C7BBnzlBn781FjUE LTUGiGShH1tN82Nz9EZ8XSUelnhZl6OLoP/PuucnjmajJ7yjnFNcbvZ+VdNLxsbY4bPP gcDKxvShbsVaDu0Ny4VHI2JDHWeMbtICRs83X49OVlvosdEF9pejb+UtDpadSpatM/1f aqF/17eed161kzPX42Nt5b3ceur9qcNroMmmrD+lfQwInZNs7qP1H2MD8yP32YOJZgXH TKLw== X-Gm-Message-State: ALyK8tLDN6O2Zu6GEJbVPwd7J1PUfxGDB7a8YitFp5Ig2mKiwdKetnnxBSBXjo/j6kaQbw== X-Received: by 10.28.25.134 with SMTP id 128mr16529900wmz.16.1466746826150; Thu, 23 Jun 2016 22:40:26 -0700 (PDT) Received: from ?IPv6:2003:62:5f01:4400:1482:e189:e8da:8d18? (p200300625F0144001482E189E8DA8D18.dip0.t-ipconnect.de. [2003:62:5f01:4400:1482:e189:e8da:8d18]) by smtp.googlemail.com with ESMTPSA id vu10sm3345076wjb.27.2016.06.23.22.40.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jun 2016 22:40:25 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH 8/9] media: rc: nuvoton: remove unneeded check in nvt_get_rx_ir_data To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Message-ID: <73a053e4-6f2c-2d02-c23c-95bc3da00077@gmail.com> Date: Fri, 24 Jun 2016 07:39:55 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If the logical device is disabled then it can not generate interrupts. Therefore this check is not needed. Signed-off-by: Heiner Kallweit --- drivers/media/rc/nuvoton-cir.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index 180f589..7a6f6c4 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c @@ -806,9 +806,6 @@ static void nvt_get_rx_ir_data(struct nvt_dev *nvt) /* Get count of how many bytes to read from RX FIFO */ fifocount = nvt_cir_reg_read(nvt, CIR_RXFCONT); - /* if we get 0xff, probably means the logical dev is disabled */ - if (fifocount == 0xff) - return; nvt_dbg("attempting to fetch %u bytes from hw rx fifo", fifocount);