Linux-ext4 Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] ext2: Remove unnecessary blank
@ 2020-10-10  9:43 Xianting Tian
  2020-10-19 16:34 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Xianting Tian @ 2020-10-10  9:43 UTC (permalink / raw)
  To: jack; +Cc: linux-ext4, linux-kernel, Xianting Tian

Remove unnecessary blank when calling kmalloc_array().

Signed-off-by: Xianting Tian <tian.xianting@h3c.com>
---
 fs/ext2/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index 7fab2b3b5..551e69755 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -1070,7 +1070,7 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
 					/ EXT2_BLOCKS_PER_GROUP(sb)) + 1;
 	db_count = (sbi->s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) /
 		   EXT2_DESC_PER_BLOCK(sb);
-	sbi->s_group_desc = kmalloc_array (db_count,
+	sbi->s_group_desc = kmalloc_array(db_count,
 					   sizeof(struct buffer_head *),
 					   GFP_KERNEL);
 	if (sbi->s_group_desc == NULL) {
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ext2: Remove unnecessary blank
  2020-10-10  9:43 [PATCH] ext2: Remove unnecessary blank Xianting Tian
@ 2020-10-19 16:34 ` Jan Kara
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2020-10-19 16:34 UTC (permalink / raw)
  To: Xianting Tian; +Cc: jack, linux-ext4, linux-kernel

On Sat 10-10-20 17:43:35, Xianting Tian wrote:
> Remove unnecessary blank when calling kmalloc_array().
> 
> Signed-off-by: Xianting Tian <tian.xianting@h3c.com>

Thanks. I've added the patch to my tree.

								Honza

> ---
>  fs/ext2/super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/ext2/super.c b/fs/ext2/super.c
> index 7fab2b3b5..551e69755 100644
> --- a/fs/ext2/super.c
> +++ b/fs/ext2/super.c
> @@ -1070,7 +1070,7 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
>  					/ EXT2_BLOCKS_PER_GROUP(sb)) + 1;
>  	db_count = (sbi->s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) /
>  		   EXT2_DESC_PER_BLOCK(sb);
> -	sbi->s_group_desc = kmalloc_array (db_count,
> +	sbi->s_group_desc = kmalloc_array(db_count,
>  					   sizeof(struct buffer_head *),
>  					   GFP_KERNEL);
>  	if (sbi->s_group_desc == NULL) {
> -- 
> 2.17.1
> 
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-10  9:43 [PATCH] ext2: Remove unnecessary blank Xianting Tian
2020-10-19 16:34 ` Jan Kara

Linux-ext4 Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-ext4/0 linux-ext4/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-ext4 linux-ext4/ https://lore.kernel.org/linux-ext4 \
		linux-ext4@vger.kernel.org
	public-inbox-index linux-ext4

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-ext4


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git