]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: gpio: fix uninitialised variable warning
authorKent Gibson <warthog618@gmail.com>
Mon, 8 Nov 2021 01:28:50 +0000 (09:28 +0800)
committerBartosz Golaszewski <brgl@bgdev.pl>
Mon, 15 Nov 2021 13:27:50 +0000 (14:27 +0100)
commit3463078d2b72b76a12a5c0b4654f644187900322
treea55835926f52f6871ea3a334edc6389333e72db3
parent7a2cd42c67840f89b07f2eac4b67640945c78577
selftests: gpio: fix uninitialised variable warning

When compiled with -Wall gpio-mockup-cdev.c reports an uninitialised
variable warning.  This is a false positive, as the variable is ignored
in the case it is uninitialised, but initialise the variable anyway
to remove the warning.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
tools/testing/selftests/gpio/gpio-mockup-cdev.c