From patchwork Tue Feb 21 03:49:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 9583849 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 3FD80600C1 for ; Tue, 21 Feb 2017 04:13:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 304CB28782 for ; Tue, 21 Feb 2017 04:13:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21D122884D; Tue, 21 Feb 2017 04:13:50 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable 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 C718F28782 for ; Tue, 21 Feb 2017 04:13:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751177AbdBUENs (ORCPT ); Mon, 20 Feb 2017 23:13:48 -0500 Received: from gateway31.websitewelcome.com ([192.185.143.4]:30534 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbdBUENs (ORCPT ); Mon, 20 Feb 2017 23:13:48 -0500 X-Greylist: delayed 1375 seconds by postgrey-1.27 at vger.kernel.org; Mon, 20 Feb 2017 23:13:48 EST Received: from cm2.websitewelcome.com (cm2.websitewelcome.com [192.185.178.13]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 3B724FE4B4 for ; Mon, 20 Feb 2017 21:50:01 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cm2.websitewelcome.com with id nFq01u0050V9LXg01Fq1Tv; Mon, 20 Feb 2017 21:50:01 -0600 Received: from [189.152.172.203] (port=54372 helo=embeddedgus) by gator4166.hostgator.com with esmtpa (Exim 4.87) (envelope-from ) id 1cg1Sh-000Gv6-Sb; Mon, 20 Feb 2017 21:49:59 -0600 Date: Mon, 20 Feb 2017 21:49:59 -0600 From: "Gustavo A. R. Silva" To: mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , Peter Senna Tschudin Subject: [PATCH 2/2] media: pci: saa7164: remove dead code Message-ID: <20170221034959.GA4837@embeddedgus> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170221034657.GA4757@embeddedgus> User-Agent: Mutt/1.5.23 (2014-03-12) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.152.172.203 X-Exim-ID: 1cg1Sh-000Gv6-Sb X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedgus) [189.152.172.203]:54372 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 6 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= 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 Remove dead code. The following line of code is never reached: return SAA_OK; Addresses-Coverity-ID: 114283 Signed-off-by: Gustavo A. R. Silva Reviewed-by: Peter Senna Tschudin --- drivers/media/pci/saa7164/saa7164-cmd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/pci/saa7164/saa7164-cmd.c b/drivers/media/pci/saa7164/saa7164-cmd.c index 169c90a..fb19498 100644 --- a/drivers/media/pci/saa7164/saa7164-cmd.c +++ b/drivers/media/pci/saa7164/saa7164-cmd.c @@ -181,8 +181,6 @@ static int saa7164_cmd_dequeue(struct saa7164_dev *dev) wake_up(q); return SAA_OK; } - - return SAA_OK; } static int saa7164_cmd_set(struct saa7164_dev *dev, struct tmComResInfo *msg,