From 3f56800753e1e0c3db0e6c4ac77b0c4dc95a8491 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 20 Jun 2013 11:26:59 -0400 Subject: init: remove unneeded intermediate variable Signed-off-by: Dave Reisner --- init_functions | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/init_functions b/init_functions index 3fa2128..152da7f 100644 --- a/init_functions +++ b/init_functions @@ -243,7 +243,7 @@ fsck_root() { } resolve_device() { - local major minor dev tag tagval device=$1 + local major minor dev tag device=$1 # attempt to resolve devices immediately. if this fails # and udev is running, fall back on lazy resolution using @@ -255,8 +255,7 @@ resolve_device() { dev=$(blkid -lt "$device" -o device) if [ -z "$dev" -a "$udevd_running" -eq 1 ]; then tag=$(awk -v t="${device%%=*}" 'BEGIN { print tolower(t) }') - tagval=${device#*=} - dev=/dev/disk/by-$tag/$tagval + dev=/dev/disk/by-$tag/${device#*=} fi esac -- cgit v1.2.3-24-g4f1b