powerpc: Simplify symbol check in prom_init_check.sh
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 13 Sep 2014 08:20:17 +0000 (10:20 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 Sep 2014 13:14:46 +0000 (23:14 +1000)
Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom_init_check.sh

index fe8e54b9ef7db5bddd01b3917741cadbc0746fa3..12640f7e726b29ce5ac9d256c589ce758a2521e8 100644 (file)
@@ -50,24 +50,14 @@ do
        done
 
        # ignore register save/restore funcitons
-       if [ "${UNDEF:0:9}" = "_restgpr_" ]; then
+       case $UNDEF in
+       _restgpr_*|_restgpr0_*|_rest32gpr_*)
                OK=1
-       fi
-       if [ "${UNDEF:0:10}" = "_restgpr0_" ]; then
-               OK=1
-       fi
-       if [ "${UNDEF:0:11}" = "_rest32gpr_" ]; then
-               OK=1
-       fi
-       if [ "${UNDEF:0:9}" = "_savegpr_" ]; then
+               ;;
+       _savegpr_*|_savegpr0_*|_save32gpr_*)
                OK=1
-       fi
-       if [ "${UNDEF:0:10}" = "_savegpr0_" ]; then
-               OK=1
-       fi
-       if [ "${UNDEF:0:11}" = "_save32gpr_" ]; then
-               OK=1
-       fi
+               ;;
+       esac
 
        if [ $OK -eq 0 ]; then
                ERROR=1