Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: gpio: gpio-sim: remove bashisms

'==' is a bashisms and not understood by POSIX shell. Drop it from
gpio-sim selftests.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>

+2 -2
+2 -2
tools/testing/selftests/gpio/gpio-sim.sh
··· 23 23 24 24 for FILE in $CONFIGFS_DIR/$CHIP/*; do 25 25 BANK=`basename $FILE` 26 - if [ "$BANK" == "live" ] || [ "$BANK" == "dev_name" ]; then 26 + if [ "$BANK" = "live" ] || [ "$BANK" = "dev_name" ]; then 27 27 continue 28 28 fi 29 29 30 30 LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | egrep ^line` 31 - if [ "$?" == 0 ]; then 31 + if [ "$?" = 0 ]; then 32 32 for LINE in $LINES; do 33 33 if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then 34 34 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \