2020-09-10 21:28:02

by Jason Yan

[permalink] [raw]
Subject: [PATCH] soc: sunxi: sram: remove unneeded semicolon

Eliminate the following coccicheck warning:

drivers/soc/sunxi/sunxi_sram.c:197:2-3: Unneeded semicolon

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Jason Yan <[email protected]>
---
drivers/soc/sunxi/sunxi_sram.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c
index 1b0d50f36349..d4c7bd59429e 100644
--- a/drivers/soc/sunxi/sunxi_sram.c
+++ b/drivers/soc/sunxi/sunxi_sram.c
@@ -194,7 +194,7 @@ static const struct sunxi_sram_data *sunxi_sram_of_parse(struct device_node *nod
if (!data) {
ret = -EINVAL;
goto err;
- };
+ }

for (func = data->func; func->func; func++) {
if (val == func->val) {
--
2.25.4


2020-09-11 15:11:17

by Maxime Ripard

[permalink] [raw]
Subject: Re: [PATCH] soc: sunxi: sram: remove unneeded semicolon

hi,

On Thu, Sep 10, 2020 at 10:05:46PM +0800, Jason Yan wrote:
> Eliminate the following coccicheck warning:
>
> drivers/soc/sunxi/sunxi_sram.c:197:2-3: Unneeded semicolon
>
> Reported-by: Hulk Robot <[email protected]>
> Signed-off-by: Jason Yan <[email protected]>

Applied, thanks!
Maxime


Attachments:
(No filename) (309.00 B)
signature.asc (235.00 B)
Download all attachments