From patchwork Thu Jun 21 02:56:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 139438 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1510307lji; Wed, 20 Jun 2018 19:56:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLjn63RkhMem2baVuLjqYIvuSSvSQfFjfngDzUXKsPqqmbkUq5cUhnUce8zgLY6UPaQw7G3 X-Received: by 2002:a17:902:6b47:: with SMTP id g7-v6mr26723974plt.251.1529549793016; Wed, 20 Jun 2018 19:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529549793; cv=none; d=google.com; s=arc-20160816; b=d1Dd9QGAz+ksABX/zYbRiETFegg1JBiA0/RI4Om6BV69NINJHc1aBf5OgknsqVdYjY 9MghnLjeNZZNcE2krtB+CXQY1LYVy8mCBZXbOhYsgPpUzN97nZ6tutmZ4AcoO+XCsa/8 FFnWMsDGjIds/GvKqK06rVaNYzzW+zdjN435mVFz33kfPbFA2khasBN3fWhgP0DVrN7o Dch8ORd+0d1/Cadtlfy9YEExqBHS7k0QDp1av5nQlkYmRCqsfdfKB51QwD1/JPVCYQER tmxD00TlXF5/Q+P0gQma0Yjuxi1tETOduhV9m/WfyaRb1GcYbEXCovzgx0/rJnhU1c9z 7ltQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=X8DcujBGnGRS6uPospwIDOfWcjMtnTlMrdki3la6Ono=; b=LuUqOXW+0JLc0Vo8JF/tu+/6N1yEEW+SPXe8TAzUswzsC7VYG6GYglikevvR1PHILn y0LwdbtYfiqKDNJAZ8kjUc5oTpswLY06HgywiXE8RzB+YDDhpHL43Go9cWkkQWotnMxA Iuq97HhHlMId2h8yF59Zsnzzam6QUjsqN/KRirqrRSWBUlyU09RTVaeiIJX4pK6XsgQu TaT53ArsWInJbf9W3TxWDFo3YL7QeXskHAfsyYSMzZFhiKngEBMFRrQbPwuPqYl3gSjJ rCg0XzYztBiioelXO69IzJum6vjFfzwQ/bsCYco4+UeIfOMIUxSyRqZeRJTCepaKjqZH JpEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5-v6si3086329pgb.430.2018.06.20.19.56.32; Wed, 20 Jun 2018 19:56:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754659AbeFUC4b (ORCPT + 30 others); Wed, 20 Jun 2018 22:56:31 -0400 Received: from mx.socionext.com ([202.248.49.38]:40671 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754284AbeFUC4a (ORCPT ); Wed, 20 Jun 2018 22:56:30 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 21 Jun 2018 11:56:28 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 1E3A2180237; Thu, 21 Jun 2018 11:56:29 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Thu, 21 Jun 2018 11:56:29 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id 9C82E40361; Thu, 21 Jun 2018 11:56:28 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id 6666112013E; Thu, 21 Jun 2018 11:56:28 +0900 (JST) From: Katsuhiro Suzuki To: Mark Brown , alsa-devel@alsa-project.org Cc: Masami Hiramatsu , Jassi Brar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [PATCH v2] ASoC: uniphier: remove redundant check of PLL ID Date: Thu, 21 Jun 2018 11:56:28 +0900 Message-Id: <20180621025628.4046-1-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes redudant check of PLL ID. struct uniphier_aio_pll enable member has already been checked at is_valid_pll(). Signed-off-by: Katsuhiro Suzuki --- Changes from v1: - Remove unused variable 'dev' --- sound/soc/uniphier/aio-cpu.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.17.1 diff --git a/sound/soc/uniphier/aio-cpu.c b/sound/soc/uniphier/aio-cpu.c index 2d9b7dde2ffa..ee90e6c3937c 100644 --- a/sound/soc/uniphier/aio-cpu.c +++ b/sound/soc/uniphier/aio-cpu.c @@ -219,15 +219,10 @@ static int uniphier_aio_set_pll(struct snd_soc_dai *dai, int pll_id, unsigned int freq_out) { struct uniphier_aio *aio = uniphier_priv(dai); - struct device *dev = &aio->chip->pdev->dev; int ret; if (!is_valid_pll(aio->chip, pll_id)) return -EINVAL; - if (!aio->chip->plls[pll_id].enable) { - dev_err(dev, "PLL(%d) is not implemented\n", pll_id); - return -ENOTSUPP; - } ret = aio_chip_set_pll(aio->chip, pll_id, freq_out); if (ret < 0)