From 40fe22d35d3e9acc55886b028d6f6c82034f05e6 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 19 Apr 2013 11:16:35 +0300 Subject: [PATCH] show_unreachable.sh: replace tabs with spaces This had a mix of tabs and spaces. Shell scripts should use 4 space indents. Signed-off-by: Dan Carpenter --- smatch_scripts/show_unreachable.sh | 42 +++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/smatch_scripts/show_unreachable.sh b/smatch_scripts/show_unreachable.sh index 15928555..6c19dc28 100755 --- a/smatch_scripts/show_unreachable.sh +++ b/smatch_scripts/show_unreachable.sh @@ -3,20 +3,20 @@ context=6 while true ; do if [ "$1" = "-C" ] ; then - shift - context=$1 - shift - continue + shift + context=$1 + shift + continue fi if [ "$1" = "-k" ] ; then - shift - mode=kernel - continue + shift + mode=kernel + continue fi if [ "$1" = "-b" ] ; then - shift - nobreak=yes - continue + shift + nobreak=yes + continue fi break done @@ -37,20 +37,20 @@ grep 'ignoring unreachable' $file | cut -d ' ' -f1 | while read loc; do if [ "$mode" = "kernel" ] ; then # BUG() is sometimes defined away on embedded systems - if tail -n +$(($line - 1)) $code_file | head -n 1 | \ - egrep -qw '(BUG|BT_STATE_CHANGE)' ; then - continue; - fi - if tail -n +$(($line)) $code_file | head -n 1 | \ - egrep -qw '(DLM_ASSERT|BT_SI_SM_RETURN|BT_STATE_CHANGE|PARSE_ERROR1|PARSE_ERROR|CMDINSIZE|PROCESS_SYSTEM_PARAM|RETURN_STATUS|ar9170_regwrite_result)' ; then - continue; - fi + if tail -n +$(($line - 1)) $code_file | head -n 1 | \ + egrep -qw '(BUG|BT_STATE_CHANGE)' ; then + continue; + fi + if tail -n +$(($line)) $code_file | head -n 1 | \ + egrep -qw '(DLM_ASSERT|BT_SI_SM_RETURN|BT_STATE_CHANGE|PARSE_ERROR1|PARSE_ERROR|CMDINSIZE|PROCESS_SYSTEM_PARAM|RETURN_STATUS|ar9170_regwrite_result)' ; then + continue; + fi fi if [ "$nobreak" = "yes" ] ; then - if tail -n +$(($line)) $code_file | head -n 1 | grep -qw 'break' ; then - continue; - fi + if tail -n +$(($line)) $code_file | head -n 1 | grep -qw 'break' ; then + continue; + fi fi echo "=========================================================" -- 2.11.4.GIT