From patchwork Wed Jan 24 00:44:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 191264 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp693974dyi; Tue, 23 Jan 2024 16:44:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWkM3qtzu9RJbwIz1RewPGy9FtaK9eMEgjkXGteiTtTMvre5hkeWki3yi1tNGFQiiUZH7U X-Received: by 2002:a05:6402:3483:b0:55c:8e6e:a3ba with SMTP id v3-20020a056402348300b0055c8e6ea3bamr987177edc.56.1706057090852; Tue, 23 Jan 2024 16:44:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706057090; cv=pass; d=google.com; s=arc-20160816; b=CwYgk7HKqmueBFVjPUxY9jnt/9QaLg7WdOgJrfXKFoaWy5XRSwnZZqf/gMQFLwxYyu q/qECpRp0Hzn3hJfqiWZHNGKyB5tLWmQCeZZ+zQG9e7TKMnZ2SOjsSabWnnTPfA6NUpm 3M7LCTAq+xzZrpanfEcm5jWTIw5RWv2NTXsGX9257X1EUIuhnDvlvitW9HlC62MQYRRB idn16lui0JasVZxQOay8Q20/ulEaoN58v5yYwSer82MS2VpzaezJCXmdJ9YV+K9hrNd0 Wh7cMkT9Fala70kLzs7+mTrrZVenKdm4wQR+6swCDRTuqEUA5O0o3+MD6unqVm4mAe/r Sybg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=fs2+dT8XS3dmTT4q7fnCK7Y+GD4z0GjcT84T4X1hIVo=; fh=ZnHR5kXPXRbPT7fgIfHV3yxFYF2upc/DtNLp2Qfxi3A=; b=pWi3ReuC0RJJ3BODI7Xk+U7ob1EUaCWBXnAd+xNjgqqnxDwT+AybFh/8af+SjuXQIB XxozN/dEITVlexR9vhqR50fKUpjIpj8P0lNFspQTgmat6OhLIllIk84jOKmiEDv2hv8P ZJkEQ453b9Yc1oW/hL7EHS/TUdoKny+PUChp8SSAXjsZOF6TV9Xrdg5FTSHus6I2RpBF 2dLBGoKbn/ZZXftDBMduv6XJtcS0TklDAuq6qbudOgDoyxNs9vUPPfs/dla2txD+vYFU Lf2rpeBzVN4yACU9sq+VJUndCJiHSQ3oCyTl/R8tf7v8yR/GzDP9+D3P8OjyHLTv0Y6J zwqg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-36231-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36231-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id eo5-20020a056402530500b0055c8e01428dsi968598edb.123.2024.01.23.16.44.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 16:44:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36231-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-36231-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36231-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7A2E11F28610 for ; Wed, 24 Jan 2024 00:44:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 384A517CB; Wed, 24 Jan 2024 00:44:36 +0000 (UTC) Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 081FDEC5; Wed, 24 Jan 2024 00:44:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706057074; cv=none; b=FfUppzB4E0RLZi+vjqLX2VAkqKYDWbefpwoXnVlU1MqJxp4tyXLmInE+MKQBKFPrvDES/bQMttt538KkXSF1N2hUkYtuOUjG3byRz6Xc+8NnNCe/BtHLewHUhJ816QJOejrrFTUmuXHILX6VeBNQ7ChLNRhVBOejTzcvKeaoJE8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706057074; c=relaxed/simple; bh=MsBFXOkvirWva83YIYZLGwPypy+AaQBKfn8SHtTTJVg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZFEp9IpfYwVaF8gL+kVAyzM07kI7rMZXzlLnBzisM9DsAGyeME4tbYajlrEFFtWVzMwvl/HgiC5IfGoDURY9mn85f1HUTkH/wY2zpLc7go2jLsPfntHpoaVOqpNpDvFL+C8+hKlUdaWKConKpJ8JC71bcCK1aDJ0WWEuuMW1fes= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; arc=none smtp.client-ip=115.124.30.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0W.E3rAK_1706057066; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0W.E3rAK_1706057066) by smtp.aliyun-inc.com; Wed, 24 Jan 2024 08:44:27 +0800 From: Yang Li To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] ASoC: codecs: Remove unneeded semicolon Date: Wed, 24 Jan 2024 08:44:25 +0800 Message-Id: <20240124004425.54020-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788930519955227964 X-GMAIL-MSGID: 1788930519955227964 In the wcd939x codec driver, there are two instances where semicolons are used after closing braces of a switch-case statement. These semicolons are not required and do not adhere to the coding style guidelines. This patch removes the unnecessary semicolons at the end of the switch-case statements which cleans up the code and ensures consistency with the rest of the kernel coding style. Signed-off-by: Yang Li --- sound/soc/codecs/wcd939x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wcd939x.c b/sound/soc/codecs/wcd939x.c index 0ccc7b31d0c1..c49894aad8a5 100644 --- a/sound/soc/codecs/wcd939x.c +++ b/sound/soc/codecs/wcd939x.c @@ -970,7 +970,7 @@ static int wcd939x_codec_enable_dmic(struct snd_soc_dapm_widget *w, default: dev_err(component->dev, "%s: Invalid DMIC Selection\n", __func__); return -EINVAL; - }; + } switch (event) { case SND_SOC_DAPM_PRE_PMU: @@ -1292,7 +1292,7 @@ static int wcd939x_micbias_control(struct snd_soc_component *component, dev_err(component->dev, "%s: Invalid micbias number: %d\n", __func__, micb_num); return -EINVAL; - }; + } switch (req) { case MICB_PULLUP_ENABLE: