* [PATCH] scsi: ipr: remove unneeded semicolon
@ 2020-04-13 8:28 Jason Yan
0 siblings, 0 replies; 4+ messages in thread
From: Jason Yan @ 2020-04-13 8:28 UTC (permalink / raw)
To: brking, jejb, martin.petersen, linux-scsi, linux-kernel
Cc: Jason Yan, Hulk Robot
Fix the following coccicheck warning:
drivers/scsi/ipr.c:1167:2-3: Unneeded semicolon
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
drivers/scsi/ipr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index d48a8fa997b9..0db37b4f7265 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -1164,7 +1164,7 @@ static void ipr_update_ata_class(struct ipr_resource_entry *res, unsigned int pr
default:
res->ata_class = ATA_DEV_UNKNOWN;
break;
- };
+ }
}
/**
--
2.21.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] scsi: ipr: Remove unneeded semicolon
@ 2023-06-27 8:29 baomingtong001
0 siblings, 0 replies; 4+ messages in thread
From: baomingtong001 @ 2023-06-27 8:29 UTC (permalink / raw)
To: jejb, martin.petersen; +Cc: linux-scsi, linux-kernel
./drivers/scsi/ipr.h:1916:2-3: Unneeded semicolon
Signed-off-by: Mingtong Bao <baomingtong001@208suo.com>
---
drivers/scsi/ipr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index c77d6ca1a210..583bbf9a7a93 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -1913,7 +1913,7 @@ static inline int ipr_sdt_is_fmt2(u32 sdt_word)
case IPR_SDT_FMT2_BAR5_SEL:
case IPR_SDT_FMT2_EXP_ROM_SEL:
return 1;
- };
+ }
return 0;
}
--
2.40.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] scsi: ipr: Remove unneeded semicolon
@ 2022-07-16 18:31 Jason Wang
0 siblings, 0 replies; 4+ messages in thread
From: Jason Wang @ 2022-07-16 18:31 UTC (permalink / raw)
To: martin.petersen; +Cc: jejb, brking, linux-scsi, linux-kernel, Jason Wang
The semicolon after the `}' in line 1980 is unneeded.
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
drivers/scsi/ipr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index 69444d21fca1..54e47ce18338 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -1977,7 +1977,7 @@ static inline int ipr_sdt_is_fmt2(u32 sdt_word)
case IPR_SDT_FMT2_BAR5_SEL:
case IPR_SDT_FMT2_EXP_ROM_SEL:
return 1;
- };
+ }
return 0;
}
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] scsi: ipr: Remove unneeded semicolon
@ 2021-08-10 12:39 Jason Wang
0 siblings, 0 replies; 4+ messages in thread
From: Jason Wang @ 2021-08-10 12:39 UTC (permalink / raw)
To: martin.petersen; +Cc: jejb, brking, linux-scsi, linux-kernel, Jason Wang
The semicolon after a code block bracket is unneeded in C. Thus, we can
remove the redundant semicolon from the code safely.
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
drivers/scsi/ipr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index 69444d21fca1..54e47ce18338 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -1977,7 +1977,7 @@ static inline int ipr_sdt_is_fmt2(u32 sdt_word)
case IPR_SDT_FMT2_BAR5_SEL:
case IPR_SDT_FMT2_EXP_ROM_SEL:
return 1;
- };
+ }
return 0;
}
--
2.32.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-27 8:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-13 8:28 [PATCH] scsi: ipr: remove unneeded semicolon Jason Yan
2021-08-10 12:39 [PATCH] scsi: ipr: Remove " Jason Wang
2022-07-16 18:31 Jason Wang
2023-06-27 8:29 baomingtong001
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).