Message ID | 20231127005959.108764-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2772199vqx; Sun, 26 Nov 2023 17:00:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjYuOKlD4d1sXlFPJft8GN2YSMaZpaPY6LPzZGUHfOoNtRUn8yzNkuyL5QqW7utfSJ5Fpb X-Received: by 2002:a05:6808:16ac:b0:3b6:a8cb:1ecb with SMTP id bb44-20020a05680816ac00b003b6a8cb1ecbmr14005045oib.40.1701046816398; Sun, 26 Nov 2023 17:00:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701046816; cv=none; d=google.com; s=arc-20160816; b=ojc0wfgNbwx3PqxwlbkrKEnmtexUyZb8m4TC6ZRQPBqhBgT9NMhspFbbZ1YrFQ3TrT KIEVRtvQ9vrsU+2vtH7llgv6Y1/Gz1K6+fa/DCekkkY9MPG2IwbfubdoLDl0XWc7MjlM lHV7KwQGqiFbyEnhgin+CyGoSXRTjXT4NMb+nlZrTEg+vX4GwpLi2ppUUm58KR0Nt5Ay 7HDlYJpeuQYpagFVpWP6h8+HvbmAyvsd/ps3FAD/oKPjFqcw6EQ0f3c6cvkGw33k//dD yazsjhfN3F5yCGaGbPHm71H7PbWdW0sJ6UMTfNMNKDXYHvMLGSw0/Fk1lSDp4tb4tl8p 8+Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HKJ6QqLMds+uMCyjUqZZFelCXi7iJBc8KpGEHbm4xUQ=; fh=Ka/70OBKPr7w7DePT7kqYanTOZBCdObZm09Zu/mQBKo=; b=UR4zDaCsNWZAWeKGb5nBBYPUibri0GF3yxSP6anrzHMh5jhNjRZwqxRlOuhk5DX8WG LYq7VAVX16xEl2dJKQUgFp/4BQM3d88pgFfywT2dQIibI1LJZgZABzYaEw5bgJMIOYUJ OkEwwSFVkJdzYWCx13W6pWVy8Dvgwe3QfASxTXgSY6vmc2xCE2gAuOHN1qnUHKdONwwu yvvemSQZVLYznNdXZWF3wt23O5wQhNopTlKm0+ZjGdnfvs2EOzS1f7gqfOXOs5f8jtcr cutS/qkAodEjCMSFCgtI57yT0g+OqWJT4oRZda05DlVVIQOtwOMsZ6c7REoAucK0si0C VEOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id jc39-20020a056a006ca700b006cbeeab7c0dsi7837194pfb.238.2023.11.26.17.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 17:00:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C16EE805BCAA; Sun, 26 Nov 2023 17:00:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229472AbjK0BAC (ORCPT <rfc822;kernel.ruili@gmail.com> + 99 others); Sun, 26 Nov 2023 20:00:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjK0BAB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 26 Nov 2023 20:00:01 -0500 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 982AC119; Sun, 26 Nov 2023 17:00:03 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Vx7XZlQ_1701046800; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Vx7XZlQ_1701046800) by smtp.aliyun-inc.com; Mon, 27 Nov 2023 09:00:01 +0800 From: Yang Li <yang.lee@linux.alibaba.com> To: nas.chung@chipsnmedia.com, jackson.lee@chipsnmedia.com, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li <yang.lee@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> Subject: [PATCH -next 1/2] media: chips-media: wave5: Remove unneeded semicolon Date: Mon, 27 Nov 2023 08:59:58 +0800 Message-Id: <20231127005959.108764-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 26 Nov 2023 17:00:12 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783676866754520965 X-GMAIL-MSGID: 1783676866754520965 |
Series |
[-next,1/2] media: chips-media: wave5: Remove unneeded semicolon
|
|
Commit Message
Yang Li
Nov. 27, 2023, 12:59 a.m. UTC
./drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c:95:2-3: Unneeded semicolon
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7633
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hey Yang, On 27.11.2023 08:59, Yang Li wrote: >./drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c:95:2-3: Unneeded semicolon Just pasting this line here makes the commit look a bit confusing. It would be enough to simply write: A switch statement does not require a semicolon after the closing curly bracket, remove it. The same applies for the second patch. Greetings, Sebastian > >Reported-by: Abaci Robot <abaci@linux.alibaba.com> >Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7633 >Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> >--- > drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c b/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c >index f29cfa3af94a..8bbf9d10b467 100644 >--- a/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c >+++ b/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c >@@ -92,7 +92,7 @@ static int switch_state(struct vpu_instance *inst, enum vpu_instance_state state > break; > case VPU_INST_STATE_STOP: > break; >- }; >+ } > > dev_dbg(inst->dev->dev, "Switch state from %s to %s.\n", > state_to_str(inst->state), state_to_str(state)); >-- >2.20.1.7.g153144c > >
diff --git a/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c b/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c index f29cfa3af94a..8bbf9d10b467 100644 --- a/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c +++ b/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c @@ -92,7 +92,7 @@ static int switch_state(struct vpu_instance *inst, enum vpu_instance_state state break; case VPU_INST_STATE_STOP: break; - }; + } dev_dbg(inst->dev->dev, "Switch state from %s to %s.\n", state_to_str(inst->state), state_to_str(state));