]> git.baikalelectronics.ru Git - kernel.git/commit
gcc-9: don't warn about uninitialized variable
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 May 2019 18:07:40 +0000 (11:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 May 2019 18:07:40 +0000 (11:07 -0700)
commit269e3b4099cc2fbeef6a043ef0c310e65ebe527b
tree7b4c64894ba98f62f9a55fb9f35c4e64424fa9a3
parent15c9aa28819af04cb7b4044d238a070ff3f732a4
gcc-9: don't warn about uninitialized variable

I'm not sure what made gcc warn about this code now.  The 'ret' variable
does end up initialized in all cases, but it's definitely not obvious,
so the compiler is quite reasonable to warn about this.

So just add initialization to make it all much more obvious both to
compilers and to humans.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/i2c/i2c-core-base.c