From patchwork Mon Aug 22 18:42:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 600651 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB70FC32774 for ; Mon, 22 Aug 2022 18:47:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235283AbiHVSrU (ORCPT ); Mon, 22 Aug 2022 14:47:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237684AbiHVSoz (ORCPT ); Mon, 22 Aug 2022 14:44:55 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E822B3885; Mon, 22 Aug 2022 11:43:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661193803; x=1692729803; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ysLY52QIaymnVb5gk/TwZwHIvVe0JIPygRIZPu439/o=; b=Gly/p7hJDDv3as0HTekGjSHoJVbVrcZwJ9GSbSDtmzxrESoDTQv5NLfE vmAfj2j4BHkm53YbJfUaxmI0f1Ov3Df943pxiIP8Nh3Iv8UcY5BUY23IU ZkikiE1PINqi8XO1lkwAqmfG/vbAd98joKHXnpgifTvtnu7al0PFmMng2 M2bzJamnP9+kntwCnn/M/p5/D+8CZfZggadOea2JhPZwc4yB/T7Rya3HR aoWZatAoyxOW17c8TqMm9ddS1AfMgWv0xD5uk9fQ8uhOQlJD/w5ZWsjpr kKmIPx4cq0ftNySBolgrqNkNMemKgklWrGRMZvhkZZQWnvCTwUHrwYVx6 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10447"; a="280464728" X-IronPort-AV: E=Sophos;i="5.93,255,1654585200"; d="scan'208";a="280464728" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2022 11:43:22 -0700 X-IronPort-AV: E=Sophos;i="5.93,255,1654585200"; d="scan'208";a="669671123" Received: from apascali-mobl2.ger.corp.intel.com (HELO pbossart-mobl3.home) ([10.252.42.21]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2022 11:43:19 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, Pierre-Louis Bossart , Bard Liao , Kai Vehmanen , Chao Song , Peter Ujfalusi , Jarkko Nikula , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-omap@vger.kernel.org (open list:OMAP AUDIO SUPPORT), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 5/5] ASoC: ti: omap-mcbsp: remove useless assignment Date: Mon, 22 Aug 2022 20:42:39 +0200 Message-Id: <20220822184239.169757-6-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220822184239.169757-1-pierre-louis.bossart@linux.intel.com> References: <20220822184239.169757-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org sound/soc/ti/omap-mcbsp.c:617:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] int ret = 0; ^ Signed-off-by: Pierre-Louis Bossart Reviewed-by: Bard Liao Reviewed-by: Kai Vehmanen Reviewed-by: Chao Song --- sound/soc/ti/omap-mcbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/ti/omap-mcbsp.c b/sound/soc/ti/omap-mcbsp.c index 0b377bb7737fd..7c539a41a6a34 100644 --- a/sound/soc/ti/omap-mcbsp.c +++ b/sound/soc/ti/omap-mcbsp.c @@ -614,7 +614,7 @@ static int omap_mcbsp_init(struct platform_device *pdev) { struct omap_mcbsp *mcbsp = platform_get_drvdata(pdev); struct resource *res; - int ret = 0; + int ret; spin_lock_init(&mcbsp->lock); mcbsp->free = true;