Skip to contentSkip to conversation

cpuhotplug_hotplug.sh: 'part' here is a variable

PATCH New Han 2 participants 2 messages Dec 1, 2016

lore
Share & tools
lore

Han

#0 lore raw

PATCH 1/1 cpuhotplug_hotplug.sh: 'part' here is a variable

Here 'part' is not a command or a function, just a variable, should not add ()

---
testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh +2 -2
index 91d2a19..9f856e5 100644
@@ -150,8 +150,8 @@ get_present_cpus()
             range_low=$(echo $part | cut -d - -f 1)
             range_high=$(echo $part | cut -d - -f 2)
         else
-            range_low=$(part)
-            range_high=$(part)
+            range_low=$part
+            range_high=$part
         fi
         for cpu in $(seq $range_low $range_high); do
             if [ -e /sys/devices/system/cpu/cpu$cpu ]; then

--
2.7.4

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20161201/177382be/attachment-0001.html>