serial: stm32: use the defined variable to simplify code
authorTang Bin <tangbin@cmss.chinamobile.com>
Sat, 14 Aug 2021 12:49:51 +0000 (20:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Aug 2021 16:52:59 +0000 (18:52 +0200)
commit59bd4eedf118a0404631038ece6f6a436b98c256
treef411229fbd7c56364c163d1dcb5128ca1b68761e
parent94560f6156fed8ddb0dfc93620382fadf02d90d0
serial: stm32: use the defined variable to simplify code

Use the defined variable 'dev' to make the code cleaner.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20210814124951.30084-1-tangbin@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c