ShellCheck - shell script analysis tool version: 0.10.0 license: GNU General Public License, version 3 website: https://www.shellcheck.net Redirect to /tmp/tmp.tiawsO5UMW and /tmp/tmp.j2Rk6RjWT8 Tree base: fb81bd7bc2d4 ("netconsole: improve code style in parser function") Now at: d00e84fde643 ("selftests: net: Refactor cleanup logic in lib_netcons.sh") ====== Checking before the patch ====== Checking tools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh - bf920798bfe9ad648c492dab7e7cb69c49e9d7fc40353062d15ff0dc93f5036d In lib_netcons.sh line 56: local SRCIF_IFIDX=$(cat /sys/class/net/"$SRCIF"/ifindex) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib_netcons.sh line 57: local DSTIF_IFIDX=$(cat /sys/class/net/"$DSTIF"/ifindex) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. For more information: https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... ====== Checking the tree with the patch ====== Checking tools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh - bf920798bfe9ad648c492dab7e7cb69c49e9d7fc40353062d15ff0dc93f5036d In lib_netcons.sh line 56: local SRCIF_IFIDX=$(cat /sys/class/net/"$SRCIF"/ifindex) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib_netcons.sh line 57: local DSTIF_IFIDX=$(cat /sys/class/net/"$DSTIF"/ifindex) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. For more information: https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...