sound: remove unnecessary blank
PATCH 1/1 sound: remove unnecessary blank
Remove unnecessary blank when calling kmalloc_array().
Signed-off-by Fengfei Xi <[email protected]>
--- sound/oss/dmasound/dmasound_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/oss/dmasound/dmasound_core.c +1 -1
@@ -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
Quoted 4 lines · Fengfei Xi
Remove unnecessary blank when calling
kmalloc_array().Signed-off-by Fengfei Xi <[email protected]>
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@@ -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