From patchwork Thu Jun 21 02:43:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 139437 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1501954lji; Wed, 20 Jun 2018 19:43:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKNW6iHId33VfCXoKEAzEpkWya/yqiV7cApVXG1D2Lx6vjt4PQTSufU0fjD66WVuhWRm3kJ X-Received: by 2002:a63:7707:: with SMTP id s7-v6mr21284137pgc.426.1529549033205; Wed, 20 Jun 2018 19:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529549033; cv=none; d=google.com; s=arc-20160816; b=oJqizoRxrY1Hgvhzubgh9WoBw5Lho7q/Wca8L5WhR6x384lP7X0tIo6m/4MzAEVS+v 1vUg1/8+Se2nV7WIm6inTM2VioMuSLAvrh2zvUMOJs8OdhCjnx9bZkVh6Ks35ka5V6Mn 5iMk8zUfseDBFxJfxno5lK5sjGdz2moAfMLohIWzNIIj4e42i/ferJL/tbUMJE8CZwfL i7jJVVtpZUnbmGkBPJL1TgyKNlbg8mrDAbEz+jAQrOSfw1HCLNbp9ydg2PN2xUnu9EqT 8LATzNmhI7hQbIQ7ntY9Dc+jcczibqcfNlhBqGMwMQMkwblklBT3jPkIZzrXEDXnDCVN c05A== 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=ZPuECPSbX7lTJ9noMloOfhBSJVma3oKuwptRCsWiWzM=; b=O1ZiE0Mmi0DKyg1BYsNiW4E9f0N+5b6BMx2jemOD2/cVtcKBG0ryHtUi0/dqQ0THAU NFLbhf6L3xB8ju5b78+y3JeYeZayIFb7kpBR7HqHLO/r0KvQC5+LJTunc5OiCjF26IBZ +6U5bwuuNoeIn4htSu81zj99aBlt8DxP/dhiPeEINZG/az7p5QUuSme56x+iUQ5eCOQ3 k8EKgyaLLtZDVyd0Qxv4BSC0ZRPeIiiDWkkxwSn/iq1UtGD89Vt/3XgnIoYN5Aehx9nk IeZ8NrtmYSlJgjQ54FDAqvFaMvOmM8/LszRGOtjS9F8NcVyYPmtd1GYeONhsCPaVMNQ8 Tgxg== 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 60-v6si3693029pla.376.2018.06.20.19.43.52; Wed, 20 Jun 2018 19:43:53 -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 S1754572AbeFUCnu (ORCPT + 30 others); Wed, 20 Jun 2018 22:43:50 -0400 Received: from mx.socionext.com ([202.248.49.38]:40485 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754192AbeFUCnt (ORCPT ); Wed, 20 Jun 2018 22:43:49 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 21 Jun 2018 11:43:48 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 913A06006F; Thu, 21 Jun 2018 11:43:48 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Thu, 21 Jun 2018 11:43:48 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id 39C7D4036B; Thu, 21 Jun 2018 11:43:48 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id 0914812013E; Thu, 21 Jun 2018 11:43:48 +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] ASoC: uniphier: remove redundant check of PLL ID Date: Thu, 21 Jun 2018 11:43:46 +0900 Message-Id: <20180621024346.13131-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 --- sound/soc/uniphier/aio-cpu.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.17.1 diff --git a/sound/soc/uniphier/aio-cpu.c b/sound/soc/uniphier/aio-cpu.c index 2d9b7dde2ffa..cfe69ab44b63 100644 --- a/sound/soc/uniphier/aio-cpu.c +++ b/sound/soc/uniphier/aio-cpu.c @@ -224,10 +224,6 @@ static int uniphier_aio_set_pll(struct snd_soc_dai *dai, int pll_id, 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)