Skip to contentSkip to conversation

sound: remove unnecessary blank

PATCH In review Fengfei Xi 2 participants 2 messages Mar 21, 2021 – Mar 22, 2021 Sound

lore
Share & tools
lore

Fengfei Xi

author
#0 lore raw

PATCH 1/1 sound: remove unnecessary blank

Remove unnecessary blank when calling kmalloc_array().

---
 sound/oss/dmasound/dmasound_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/oss/dmasound/dmasound_core.c +1 -1
index 49679aa86..78bb9dfe2 100644
@@ -421,7 +421,7 @@ static int sq_allocate_buffers(struct sound_queue *sq, int num, int size)
 		return 0;
 	sq->numBufs = num;
 	sq->bufSize = size;
-	sq->buffers = kmalloc_array (num, sizeof(char *), GFP_KERNEL);
+	sq->buffers = kmalloc_array(num, sizeof(char *), GFP_KERNEL);
 	if (!sq->buffers)
 		return -ENOMEM;
 	for (i = 0; i < num; i++) {
Signature · 1 line
2.17.1
#1 lore raw
Quoted 4 lines · Fengfei Xi

Remove unnecessary blank when calling kmalloc_array().

Thanks for the patch.

We apply this kind of trivial coding-style fix only if it'd improve the readability significantly or when it's a preliminary work for the other actual fixes. So if you'd work on this driver further, let us know.

Takashi

Quoted 20 lines
---
 sound/oss/dmasound/dmasound_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/oss/dmasound/dmasound_core.c +1 -1
index 49679aa86..78bb9dfe2 100644
@@ -421,7 +421,7 @@ static int sq_allocate_buffers(struct sound_queue *sq, int num, int size)
 		return 0;
 	sq->numBufs = num;
 	sq->bufSize = size;
-	sq->buffers = kmalloc_array (num, sizeof(char *), GFP_KERNEL);
+	sq->buffers = kmalloc_array(num, sizeof(char *), GFP_KERNEL);
 	if (!sq->buffers)
 		return -ENOMEM;
 	for (i = 0; i < num; i++) {
Signature · 1 line
2.17.1