Tag: 2d02b0b81c0474212310c5a72cf088736c9aab41

Staging: lustre: Unnecessory else and braces are removed

Author: Vaishali Thakkar <vthakkar1994@gmail.com> This patch fixes following checkpatch.pl warning using coccinelle: WARNING: else is not generally useful after a break or return Semantic patch used for this is as follows: @rule1@ expression e1; @@ if (e1) { … return …; } – else{ … – } @rule2@ expression e2; statement s1; @@ if(e2) { …

Continue reading