Skip to content

Commit

Permalink
drivers/serial/bfin_sport_uart.c: remove wrong and unneeded memset
Browse files Browse the repository at this point in the history
[email protected] notes that this memset has its args reversed.

It's unneeded anyway, so remove it.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13587

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Jul 16, 2009
1 parent 8f4256b commit ff5392d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/serial/bfin_sport_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ static int sport_startup(struct uart_port *port)
int retval;

pr_debug("%s enter\n", __func__);
memset(buffer, 20, '\0');
snprintf(buffer, 20, "%s rx", up->name);
retval = request_irq(up->rx_irq, sport_uart_rx_irq, IRQF_SAMPLE_RANDOM, buffer, up);
if (retval) {
Expand Down

0 comments on commit ff5392d

Please sign in to comment.