• Arnd Bergmann's avatar
    serial: mvebu-uart: drop incorrect memset · 0ea46e6e
    Arnd Bergmann authored
    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: 95f78768 ("serial: mvebu-uart: dissociate RX and TX interrupts")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    0ea46e6e
mvebu-uart.c 23.3 KB