i2c: jz4780: drop superfluous init
authorWolfram Sang <wsa@the-dreams.de>
Sun, 5 Jun 2016 09:41:42 +0000 (11:41 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 13 Jun 2016 20:32:09 +0000 (22:32 +0200)
commit27bfeb5a0619554d9734fb39e14f0e80fa7c342c
tree89cbbc784677843d4440ab12f7a96db2c22bbb54
parenta90bc5d9a77a4e0d5e65f69ef56eb40627f50e3e
i2c: jz4780: drop superfluous init

David reported that the length for memset was incorrect (element sizes
were not taken into account). Then I saw that we are clearing kzalloced
memory, so we can simply drop this code.

Reported-by: David Binderman <dcb314@hotmail.com>
Reviewed-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-jz4780.c