OSDN Git Service

i2c: jz4780: drop superfluous init
authorWolfram Sang <wsa@the-dreams.de>
Sun, 5 Jun 2016 09:41:42 +0000 (11:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Sep 2017 05:06:50 +0000 (07:06 +0200)
commit41685ae5cd7bc51f8d796135611e7862f772ed19
tree7e99cf25b09b94512f32ed942f85e971abe1a7d0
parent05429bbfd726ec0070a2381d8ae186b6899d2ae1
i2c: jz4780: drop superfluous init

commit 27bfeb5a0619554d9734fb39e14f0e80fa7c342c upstream.

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