[Pm-utils] [PATCH 10/17] Get rid of redundant calls to exit.

Victor Lowther victor.lowther at gmail.com
Sat Feb 16 12:30:12 PST 2008


---
 pm/sleep.d/65alsa |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/pm/sleep.d/65alsa b/pm/sleep.d/65alsa
index 35da00d..5fc729e 100755
--- a/pm/sleep.d/65alsa
+++ b/pm/sleep.d/65alsa
@@ -2,7 +2,7 @@
 
 . "${PM_FUNCTIONS}"
 
-command_exists alsactl || exit 1
+command_exists alsactl || exit $NA
 
 case "$1" in
 	hibernate|suspend)
@@ -11,8 +11,6 @@ case "$1" in
 	thaw|resume) 
 		alsactl restore 0 >/dev/null 2>&1
 		;;
-	*)
+	*) exit $NA
 		;;
 esac
-
-exit $?
-- 
1.5.3.8



More information about the Pm-utils mailing list