Go to file
Yonattan Louise 63e3a4e772 Fix checkpatch issue - ERROR:ELSE_AFTER_BRACE
The 'else' statement should be in the same line that the
close brace of the 'if' statement. E.g.:

	if (condition) {
		do_this();
		do_that();
	} else {
		otherwise();
	}

This commit fixed this kind of error using the following script:

	#!/bin/bash

	for file in $(find ./ -name "*.[ch]" ! -path "./scripts/*" ! -path "./host/src/wrsconfig/*");
	do
		if [ ! -h $file ];
		then
			sed -i '/^[ \t]*}$/ {
	:review_next_one_too
	N
	s/^\(.*\)\n[ \t]*else/\1 else/
	/}$/ b review_next_one_too
	}' $file;

		fi;
	done

Change-Id: I7e811a572d735fa08e84850055ebbde29eb10e8d
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
2016-02-05 20:13:59 -05:00
arch Fix coding style issues. 2016-02-05 20:13:59 -05:00
config fsl_frdm_k64f: Increase number of IRQs for Bluetooth over UART 2016-02-05 20:13:51 -05:00
doc Add tools and Makefiles for Documentation 2016-02-05 20:13:58 -05:00
drivers Fix coding style issues. 2016-02-05 20:13:59 -05:00
host Fix checkpatch issue - ERROR:ELSE_AFTER_BRACE 2016-02-05 20:13:59 -05:00
include Fix coding style issues. 2016-02-05 20:13:59 -05:00
kernel Fix checkpatch issue - ERROR:ELSE_AFTER_BRACE 2016-02-05 20:13:59 -05:00
lib/libc/minimal Fix checkpatch issue - WARNING:LONG_LINE 2016-02-05 20:13:59 -05:00
make Eliminate generated microkernel_objects.h file 2016-02-05 20:13:59 -05:00
misc Remove inclusion of unused header files 2016-02-05 20:13:41 -05:00
net Bluetooth: Intro of basic ADV handler 2016-02-05 20:13:58 -05:00
samples Fix checkpatch issue - ERROR:ELSE_AFTER_BRACE 2016-02-05 20:13:59 -05:00
scripts Eliminate obsolete symbols from generated vxmicro.h 2016-02-05 20:13:59 -05:00
shared/include/nanokernel/x86 Fix checkpatch issue - WARNING:SPACING 2016-02-05 20:13:59 -05:00
.gitattributes First commit 2015-04-10 16:44:37 -07:00
.gitignore Add tools and Makefiles for Documentation 2016-02-05 20:13:58 -05:00
.mailmap First commit 2015-04-10 16:44:37 -07:00
vxmicro-env.bash Remove reference to CodeSourcery 2016-02-05 20:13:41 -05:00