From: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
To: bhelgaas@google.com, brgl@bgdev.pl
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
krishna.chundru@oss.qualcomm.com,
Manivannan Sadhasivam <mani@kernel.org>,
kernel test robot <lkp@intel.com>
Subject: [PATCH 2/2] PCI/pwrctrl: tc9563: Remove unnecessary semicolons
Date: Thu, 20 Nov 2025 12:21:16 +0530 [thread overview]
Message-ID: <20251120065116.13647-3-mani@kernel.org> (raw)
In-Reply-To: <20251120065116.13647-1-mani@kernel.org>
As reported by the LKP bot, semicolons are not needed at the end of the
switch and if blocks. Hence, remove them.
This fixes the below cocci warnings:
cocci warnings: (new ones prefixed by >>)
>> drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:351:2-3: Unneeded semicolon
drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:414:2-3: Unneeded semicolon
drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:316:2-3: Unneeded semicolon
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511200555.M4TX84jK-lkp@intel.com
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
---
drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c b/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
index 46339a23204f..ec423432ac65 100644
--- a/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
+++ b/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
@@ -313,7 +313,7 @@ static int tc9563_pwrctrl_set_tx_amplitude(struct tc9563_pwrctrl_ctx *ctx,
break;
default:
return -EINVAL;
- };
+ }
struct tc9563_pwrctrl_reg_setting tx_amp_seq[] = {
{TC9563_PORT_ACCESS_ENABLE, port_access},
@@ -348,7 +348,7 @@ static int tc9563_pwrctrl_disable_dfe(struct tc9563_pwrctrl_ctx *ctx,
break;
default:
return -EINVAL;
- };
+ }
struct tc9563_pwrctrl_reg_setting disable_dfe_seq[] = {
{TC9563_PORT_ACCESS_ENABLE, port_access},
@@ -411,7 +411,7 @@ static int tc9563_pwrctrl_parse_device_dt(struct tc9563_pwrctrl_ctx *ctx, struct
if (!of_device_is_available(node)) {
cfg->disable_port = true;
return 0;
- };
+ }
ret = of_property_read_u32(node, "aspm-l0s-entry-delay-ns", &cfg->l0s_delay);
if (ret && ret != -EINVAL)
--
2.48.1
next prev parent reply other threads:[~2025-11-20 6:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-20 6:51 [PATCH 0/2] PCI/pwrctrl: tc9563: A couple of fixes Manivannan Sadhasivam
2025-11-20 6:51 ` [PATCH 1/2] PCI/pwrctrl: tc9563: Enforce I2C dependency Manivannan Sadhasivam
2025-11-20 13:12 ` Bartosz Golaszewski
2025-11-20 6:51 ` Manivannan Sadhasivam [this message]
2025-11-20 13:13 ` [PATCH 2/2] PCI/pwrctrl: tc9563: Remove unnecessary semicolons Bartosz Golaszewski
2025-11-24 21:32 ` [PATCH 0/2] PCI/pwrctrl: tc9563: A couple of fixes Bjorn Helgaas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251120065116.13647-3-mani@kernel.org \
--to=manivannan.sadhasivam@oss.qualcomm.com \
--cc=bhelgaas@google.com \
--cc=brgl@bgdev.pl \
--cc=krishna.chundru@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lkp@intel.com \
--cc=mani@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®