summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-19 00:51:50 +0100
committerDave Reisner <dreisner@archlinux.org>2012-11-24 00:01:34 +0100
commita3889c6914f7fac5a5b7a438be4233bcf66db44c (patch)
tree5fe2a8ac251790ba2fb6d248923b2cd8e0b1198f /init_functions
parente8f0c1226fbf87d3be711a36693c30ed7745e45d (diff)
downloadmkinitcpio-a3889c6914f7fac5a5b7a438be4233bcf66db44c.tar.gz
mkinitcpio-a3889c6914f7fac5a5b7a438be4233bcf66db44c.tar.xz
init: remove unneeded variable expansion
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'init_functions')
-rw-r--r--init_functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/init_functions b/init_functions
index bdc6cc9..761f7a2 100644
--- a/init_functions
+++ b/init_functions
@@ -143,7 +143,7 @@ fsck_root() {
fsck_ret() {
[ -z "$fsckret" ] && return 1
[ "$fsckret" -eq "$1" ] && return 0
- [ "$(( $fsckret & $1 ))" -eq "$1" ]
+ [ "$(( fsckret & $1 ))" -eq "$1" ]
}
if [ "$fsckret" -ne 255 ]; then
@@ -218,8 +218,8 @@ resolve_device() {
minor=$(( 0x0$device & 0xff ))
;;
0x[0-9a-fA-F][0-9a-fA-F]*)
- major=$(( $device >> 8 ))
- minor=$(( $device & 0xff ))
+ major=$(( device >> 8 ))
+ minor=$(( device & 0xff ))
;;
esac