diff mbox series

scsi: sym53c8xx_2: remove unneeded semicolon

Message ID 20200911091031.2937834-1-yanaijie@huawei.com (mailing list archive)
State Accepted
Headers show
Series scsi: sym53c8xx_2: remove unneeded semicolon | expand

Commit Message

Jason Yan Sept. 11, 2020, 9:10 a.m. UTC
This addresses the following coccinelle warning:

drivers/scsi/sym53c8xx_2/sym_fw.c:372:3-4: Unneeded semicolon
drivers/scsi/sym53c8xx_2/sym_fw.c:480:3-4: Unneeded semicolon
drivers/scsi/sym53c8xx_2/sym_fw.c:536:2-3: Unneeded semicolon

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
 drivers/scsi/sym53c8xx_2/sym_fw.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Martin K. Petersen Sept. 15, 2020, 9:33 p.m. UTC | #1
Jason,

> This addresses the following coccinelle warning:
>
> drivers/scsi/sym53c8xx_2/sym_fw.c:372:3-4: Unneeded semicolon
> drivers/scsi/sym53c8xx_2/sym_fw.c:480:3-4: Unneeded semicolon
> drivers/scsi/sym53c8xx_2/sym_fw.c:536:2-3: Unneeded semicolon

Applied to 5.10/scsi-staging, thanks!
Martin K. Petersen Sept. 22, 2020, 3:57 a.m. UTC | #2
On Fri, 11 Sep 2020 17:10:31 +0800, Jason Yan wrote:

> This addresses the following coccinelle warning:
> 
> drivers/scsi/sym53c8xx_2/sym_fw.c:372:3-4: Unneeded semicolon
> drivers/scsi/sym53c8xx_2/sym_fw.c:480:3-4: Unneeded semicolon
> drivers/scsi/sym53c8xx_2/sym_fw.c:536:2-3: Unneeded semicolon

Applied to 5.10/scsi-queue, thanks!

[1/1] scsi: sym53c8xx_2: Remove unneeded semicolon
      https://git.kernel.org/mkp/scsi/c/8d4089cdc313
diff mbox series

Patch

diff --git a/drivers/scsi/sym53c8xx_2/sym_fw.c b/drivers/scsi/sym53c8xx_2/sym_fw.c
index c6db61b61de3..c536d2a9a657 100644
--- a/drivers/scsi/sym53c8xx_2/sym_fw.c
+++ b/drivers/scsi/sym53c8xx_2/sym_fw.c
@@ -369,7 +369,7 @@  void sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len)
 				sym_name(np), (int) (cur-start));
 			++cur;
 			continue;
-		};
+		}
 
 		/*
 		 *  We use the bogus value 0xf00ff00f ;-)
@@ -477,7 +477,7 @@  void sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len)
 		default:
 			relocs = 0;
 			break;
-		};
+		}
 
 		/*
 		 *  Scriptify:) the opcode.
@@ -533,5 +533,5 @@  void sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len)
 
 			*cur++ = cpu_to_scr(new);
 		}
-	};
+	}
 }