Skip to content

Commit

Permalink
tty: ar933x_uart: remove superfluous assignment of ar933x_uart_driver.nr
Browse files Browse the repository at this point in the history
The 'nr' field of the 'ar933x_uart_driver' structure
is already initialized with the same value in the static
declaration. Remove the superfluous assignment in the
module init routine.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Gabor Juhos authored and Greg Kroah-Hartman committed Aug 28, 2013
1 parent 15ef17f commit 0710e56
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/tty/serial/ar933x_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,6 @@ static int __init ar933x_uart_init(void)
{
int ret;

ar933x_uart_driver.nr = CONFIG_SERIAL_AR933X_NR_UARTS;
ret = uart_register_driver(&ar933x_uart_driver);
if (ret)
goto err_out;
Expand Down

0 comments on commit 0710e56

Please sign in to comment.