Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3459373imm; Mon, 6 Aug 2018 05:17:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfUee8yYXh5BWEJ+9Y7VYiNRjeVJc8glaUt1HZ0H7I8cGBf5q3sq3jmCIXPo1yYuJy5phRu X-Received: by 2002:a17:902:9a01:: with SMTP id v1-v6mr13883324plp.20.1533557869279; Mon, 06 Aug 2018 05:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533557869; cv=none; d=google.com; s=arc-20160816; b=XSv/NKWnDcpHbPilTZvL1Gh8RlR85V7r9CVcZTXrhgx22GhoT2GvDVhj0NlDytVwV8 FALk540t80ZCR39JpPj7Y4i6v37TlzWlBqvMwwiC9I+5JtSgQ4x0GBTYxwHvSIbqAQmD OHmKMhiebULT8N+8oXAdJuTnzq7KBPfbDXW98eem+CocnI+RAazy6rq/+pSfJey87KCn 0Hpson8IOX8aVxPrs9fQwQ7JYVz55lyB+dciRr8zhlg3c2ZuZEFsLC1eGMmQ0761FiZL gEYjfrh5lTAruhEACyV8uU4Y2nOfI1S6I2nsIoO1Zv2wj3xeUtb7LeY6Gs5MmMFNsi3g nTcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=+KoglXo5bIUPsYNOY1h0PiHgAXPKU6vc4tE7lT0WTWQ=; b=XEwIrmoZdHNI/o8hFblZfl+Ul2BHuyafVLt8FD5/KASaaQbtZ46hlhp9JMzxqz9rvq 8mq5OrersYcbkYp14+zHbOsFjUgveRw0EeoPiG3c5pUl2yabdPWjb5P0ySX6nm03TmgR 2VtFMe+iUxSk+QQEkmLJMdSO5P9FVT/gunFeR3DUaFjN7DCSgGqm2Nu1D2SSUSIgaSEF oXBdOfLCHlnT44BXTfHHNAzD029K0xDHxHvDBMgPGIPCujFX3vjyM9eChqSKZwIwe6Xm +ftMVxGhyj1ETMlaUgZ9buNnztOe+gwLi/GIty1vKB3nX/gmH+JwgIcb17QWMsJabISZ thZQ== 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 15-v6si12770252pgo.574.2018.08.06.05.17.34; Mon, 06 Aug 2018 05:17:49 -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 S1732162AbeHFOZf (ORCPT + 99 others); Mon, 6 Aug 2018 10:25:35 -0400 Received: from gateway22.websitewelcome.com ([192.185.47.125]:28125 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731137AbeHFOZf (ORCPT ); Mon, 6 Aug 2018 10:25:35 -0400 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 22C121469DA2 for ; Mon, 6 Aug 2018 07:14:57 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id mePZfE0UDRPojmePZfiOqS; Mon, 06 Aug 2018 07:14:57 -0500 X-Authority-Reason: nr=8 Received: from [189.250.50.82] (port=56926 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fmePW-000sSh-OS; Mon, 06 Aug 2018 07:14:54 -0500 Date: Mon, 6 Aug 2018 07:14:51 -0500 From: "Gustavo A. R. Silva" To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Valdis Kletnieks , patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] ASoC: wm8994: Fix missing break in switch Message-ID: <20180806121451.GA14954@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.50.82 X-Source-L: No X-Exim-ID: 1fmePW-000sSh-OS X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.50.82]:56926 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 8 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing break statement in order to prevent the code from falling through to the default case. Cc: stable@vger.kernel.org Addresses-Coverity-ID: 115050 ("Missing break in switch") Reported-by: Valdis Kletnieks Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/wm8994.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 62f8c5b..14f1b0c 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -2432,7 +2432,7 @@ static int wm8994_set_dai_sysclk(struct snd_soc_dai *dai, snd_soc_component_update_bits(component, WM8994_POWER_MANAGEMENT_2, WM8994_OPCLK_ENA, 0); } - /* fall through */ + break; default: return -EINVAL; -- 2.7.4