From patchwork Fri Nov 23 17:15:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 10696225 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 003601750 for ; Fri, 23 Nov 2018 17:16:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4CD9285EB for ; Fri, 23 Nov 2018 17:16:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D8E1C2C239; Fri, 23 Nov 2018 17:16:05 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 88B96285EB for ; Fri, 23 Nov 2018 17:16:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440788AbeKXEBK (ORCPT ); Fri, 23 Nov 2018 23:01:10 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:33202 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732237AbeKXEBJ (ORCPT ); Fri, 23 Nov 2018 23:01:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1JSEsz2ME3HBTU4PfsOSRxupOGS/qZyvSiGjJOacb/I=; b=p3PYamkauUfhFNACcZ7c6nVFM +pIU4pFZXqYbcjg3pucgUePcI6I2dBgO8kVy11zRXgwgDjKRHsg8+Ciw+pPpjELGjlNrhF87RMuXn XKcPHJSH5oahsh+iS+jTajEMUWMmyXK+mHcNbyQzBALL2t1TWqj97NSdAV17yxYiSnRnd6VCR3R2L WMgZSHNVJqEVxVQyppSa9Q+8mFcT/ATXzKmAJtLoar/r4ayMo/ra7LFiZbomj4tARPuqRWNSlz3OE cEbuFVzpbFNNQsOZ5OPJYA/DAfJsUk8/KG/I663RkEsaTpgNEXz9XJIilDRODSQ9yAGhKELBuYGXF KIczCtPjA==; Received: from 201.47.163.210.dynamic.adsl.gvt.net.br ([201.47.163.210] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gQF3i-0003t9-Nj; Fri, 23 Nov 2018 17:16:02 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.91) (envelope-from ) id 1gQF3f-00045i-AW; Fri, 23 Nov 2018 12:15:59 -0500 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Linux Media Mailing List , Mauro Carvalho Chehab , Akihiro Tsukada , Michael Buesch Subject: [PATCH] media: dvb-pll: don't re-validate tuner frequencies Date: Fri, 23 Nov 2018 12:15:58 -0500 Message-Id: <47d7c8b16d765432221da31a4570a1689a8e3580.1542993354.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) 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 The dvb_frontend core already checks for the frequencies. No need for any additional check inside the driver. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb-frontends/dvb-pll.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/dvb-frontends/dvb-pll.c b/drivers/media/dvb-frontends/dvb-pll.c index fff5816f6ec4..29836c1a40e9 100644 --- a/drivers/media/dvb-frontends/dvb-pll.c +++ b/drivers/media/dvb-frontends/dvb-pll.c @@ -610,9 +610,6 @@ static int dvb_pll_configure(struct dvb_frontend *fe, u8 *buf, u32 div; int i; - if (frequency && (frequency < desc->min || frequency > desc->max)) - return -EINVAL; - for (i = 0; i < desc->count; i++) { if (frequency > desc->entries[i].limit) continue;