Catégorie : Linux

Staging: speakup: Remove braces for single statement blocks

Author: Shraddha Barke <shraddha.6596@gmail.com> The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman — drivers/staging/speakup/speakup_dectlk.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   …

Lire la suite

Staging: android: Remove unnecessary braces.

Author: Shraddha Barke <shraddha.6596@gmail.com> The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman — drivers/staging/android/ashmem.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   …

Lire la suite

Staging: lustre: lnet: Remove braces for single statement blocks

Author: Shraddha Barke <shraddha.6596@gmail.com> The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-)   …

Lire la suite

Staging: lustre: llite: llite_lib.c: Remove unnecessary braces

Author: Shraddha Barke <shraddha.6596@gmail.com> The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/llite/llite_lib.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-)   …

Lire la suite

Staging: lustre: llite: llite_close.c: Remove unnecessary braces

Author: Shraddha Barke <shraddha.6596@gmail.com> The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/llite/llite_close.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-)   …

Lire la suite

Staging: lustre: obdclass: Remove braces for single statement blocks

Author: Shraddha Barke <shraddha.6596@gmail.com> The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/obdclass/dt_object.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-)   …

Lire la suite

Staging: lustre: libcfs: Remove braces for single statement blocks

Author: Shraddha Barke <shraddha.6596@gmail.com> The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-)   …

Lire la suite

Staging: lustre: ptlrpc: Remove braces for single statement blocks

Author: Shraddha Barke <shraddha.6596@gmail.com> The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/ptlrpc/client.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-)   …

Lire la suite

Staging: rtl8723au: hal: Remove braces for single statement blocks

Author: Shraddha Barke <shraddha.6596@gmail.com> The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The error was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8723au/hal/usb_halinit.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-)   …

Lire la suite

ntfs: delete unnecessary checks before calling iput()

Author: SF Markus Elfring <elfring@users.sourceforge.net> iput() tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Cc: Julia Lawall Reviewed-by: Anton Altaparmakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds — fs/ntfs/super.c | 21 +++++++————– 1 …

Lire la suite