mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
92a59d7f38
commit
c472d71be0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue