diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-09 14:10:30 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 14:29:59 -0700 |
commit | d4aab2064adbd0660ab9cbfc3e93eae8216b41aa (patch) | |
tree | fe96ef133e1caeb396cbba67a80a8cf73a0641c5 /drivers/tty/serial/samsung.h | |
parent | 7a89c79a946d72597fb96a06a9a9e95ff6b832b4 (diff) | |
download | blackbird-obmc-linux-d4aab2064adbd0660ab9cbfc3e93eae8216b41aa.tar.gz blackbird-obmc-linux-d4aab2064adbd0660ab9cbfc3e93eae8216b41aa.zip |
serial: samsung: Remove casting the return value which is a void pointer
Casting the return value which is a void pointer is redundant.
The conversion from void pointer to any other pointer type is
guaranteed by the C programming language.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/samsung.h')
-rw-r--r-- | drivers/tty/serial/samsung.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/samsung.h b/drivers/tty/serial/samsung.h index aaa617a6c499..8827e5424cef 100644 --- a/drivers/tty/serial/samsung.h +++ b/drivers/tty/serial/samsung.h @@ -63,7 +63,7 @@ struct s3c24xx_uart_port { /* conversion functions */ -#define s3c24xx_dev_to_port(__dev) (struct uart_port *)dev_get_drvdata(__dev) +#define s3c24xx_dev_to_port(__dev) dev_get_drvdata(__dev) /* register access controls */ |