perf tests: Fix shellcheck warning in stat_all_metricgroups
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Fri, 13 Oct 2023 07:30:21 +0000 (13:00 +0530)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 17 Oct 2023 19:40:51 +0000 (12:40 -0700)
commita20fca2c5db19a09260827e526f37397ba698ce0
tree05c00698cf5731cd1da1e99fce3f4bd2e93bfc5b
parenteff65ee26ed73f3ca635bac13c386a4538a608d8
perf tests: Fix shellcheck warning in stat_all_metricgroups

Running shellcheck on stat_all_metricgroups.sh reports
below warning:

 In ./tests/shell/stat_all_metricgroups.sh line 7:
 function ParanoidAndNotRoot()
 ^-- SC2112: 'function' keyword is non-standard. Delete it.

As per the format, "function" is a non-standard keyword that
can be used to declare functions. Fix this by removing the
"function" keyword from ParanoidAndNotRoot function

Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: kjain@linux.ibm.com
Cc: maddy@linux.ibm.com
Cc: disgoel@linux.vnet.ibm.com
Cc: linuxppc-dev@lists.ozlabs.org
Link: https://lore.kernel.org/r/20231013073021.99794-4-atrajeev@linux.vnet.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/stat_all_metricgroups.sh