]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: Samsung: Fix return value
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 12 Sep 2012 06:30:01 +0000 (12:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 11:45:30 +0000 (04:45 -0700)
commitb75b518775cdb4b3b980c817eb9c98c260738825
tree384c981882e45970d2f4f35cd7424023a5647cd6
parent0c9ec058d7f362d6c272c8a316cb74aac99ac692
tty: serial: Samsung: Fix return value

Return the value returned by the failing function instead
of -1 (which does not convey the right error information).

Fixes the following smatch warning:
drivers/tty/serial/samsung.c:1687 s3c24xx_serial_modinit() info:
why not propagate 'ret' from uart_register_driver() instead of -1?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c