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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Aug 2019 15:52:27 +0000 (17:52 +0200)
commita152a7b411a54b73707f37ab753cd907c3edfc56
treed9c6f0b9854a7fdb2c1bcc8defca38513648c453
parent93d6f0841eef6304c13803a84588f00476b06a14
gcc-9: don't warn about uninitialized variable

commit cf676908846a06443fa5e6724ca3f5dd7460eca1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/i2c-core-base.c