[-next] f2fs: Remove unneeded semicolon

Message ID 20230202010111.69078-1-yang.lee@linux.alibaba.com
State New
Headers
Series [-next] f2fs: Remove unneeded semicolon |

Commit Message

Yang Li Feb. 2, 2023, 1:01 a.m. UTC
  ./fs/f2fs/checkpoint.c:1485:55-56: Unneeded semicolon

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3925
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 fs/f2fs/checkpoint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Jaegeuk Kim Feb. 2, 2023, 9:37 p.m. UTC | #1
Thanks, but applied the fix in the original patch.

On 02/02, Yang Li wrote:
> ./fs/f2fs/checkpoint.c:1485:55-56: Unneeded semicolon
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3925
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
>  fs/f2fs/checkpoint.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
> index b1b39c17f2d8..b7ef8cd10b10 100644
> --- a/fs/f2fs/checkpoint.c
> +++ b/fs/f2fs/checkpoint.c
> @@ -1482,7 +1482,7 @@ static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
>  	for (i = 0; i < NR_CURSEG_DATA_TYPE; i++) {
>  		struct curseg_info *curseg = CURSEG_I(sbi, i + CURSEG_HOT_DATA);
>  
> -		ckpt->cur_data_segno[i] = cpu_to_le32(curseg->segno);;
> +		ckpt->cur_data_segno[i] = cpu_to_le32(curseg->segno);
>  		ckpt->cur_data_blkoff[i] = cpu_to_le16(curseg->next_blkoff);
>  		ckpt->alloc_type[i + CURSEG_HOT_DATA] = curseg->alloc_type;
>  	}
> -- 
> 2.20.1.7.g153144c
  

Patch

diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index b1b39c17f2d8..b7ef8cd10b10 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -1482,7 +1482,7 @@  static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
 	for (i = 0; i < NR_CURSEG_DATA_TYPE; i++) {
 		struct curseg_info *curseg = CURSEG_I(sbi, i + CURSEG_HOT_DATA);
 
-		ckpt->cur_data_segno[i] = cpu_to_le32(curseg->segno);;
+		ckpt->cur_data_segno[i] = cpu_to_le32(curseg->segno);
 		ckpt->cur_data_blkoff[i] = cpu_to_le16(curseg->next_blkoff);
 		ckpt->alloc_type[i + CURSEG_HOT_DATA] = curseg->alloc_type;
 	}