summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/gpio/gpio-mockup-cdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/gpio/gpio-mockup-cdev.c')
-rw-r--r--tools/testing/selftests/gpio/gpio-mockup-cdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/gpio/gpio-mockup-cdev.c b/tools/testing/selftests/gpio/gpio-mockup-cdev.c
index e83eac71621a..d1640f44f8ac 100644
--- a/tools/testing/selftests/gpio/gpio-mockup-cdev.c
+++ b/tools/testing/selftests/gpio/gpio-mockup-cdev.c
@@ -117,7 +117,7 @@ int main(int argc, char *argv[])
{
char *chip;
int opt, ret, cfd, lfd;
- unsigned int offset, val, abiv;
+ unsigned int offset, val = 0, abiv;
uint32_t flags_v1;
uint64_t flags_v2;