diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-11-02 12:34:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-04 12:08:53 +0100 |
commit | 0ea46e6e58ab7447222bcaa10be0adcd9f92284d (patch) | |
tree | b2844d18b854cc902b6b77d397f232af7ae27c68 /drivers/tty/pty.c | |
parent | 5de15cc2526132440415209e12633636e206d531 (diff) | |
download | linux-0ea46e6e58ab7447222bcaa10be0adcd9f92284d.tar.bz2 |
serial: mvebu-uart: drop incorrect memset
gcc points out that the length passed into memset here is wrong:
drivers/tty/serial/mvebu-uart.c: In function 'mvebu_uart_probe':
arch/x86/include/asm/string_32.h:324:29: error: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
Moreover, the structure was allocated with kzalloc a few lines earlier,
so that memset is also unnecessary. Let's drop it to shut up the
compiler warning.
Fixes: 95f787685a22 ("serial: mvebu-uart: dissociate RX and TX interrupts")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/pty.c')
0 files changed, 0 insertions, 0 deletions