From: Fabio Estevam Date: Fri, 10 Apr 2015 02:22:43 +0000 (-0300) Subject: serial: imx: Remove return value from imx_setup_ufcr() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=caec172d57fde299ee4f4b05c851a059771fd5b7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git serial: imx: Remove return value from imx_setup_ufcr() The return value from imx_setup_ufcr() is always 0 and its value is never checked, so better to remove the return value. Signed-off-by: Fabio Estevam Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 38717c7bb46f..8aff0b4d8ddf 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -853,7 +853,7 @@ static void imx_break_ctl(struct uart_port *port, int break_state) #define TXTL 2 /* reset default */ #define RXTL 1 /* reset default */ -static int imx_setup_ufcr(struct imx_port *sport, unsigned int mode) +static void imx_setup_ufcr(struct imx_port *sport, unsigned int mode) { unsigned int val; @@ -861,7 +861,6 @@ static int imx_setup_ufcr(struct imx_port *sport, unsigned int mode) val = readl(sport->port.membase + UFCR) & (UFCR_RFDIV | UFCR_DCEDTE); val |= TXTL << UFCR_TXTL_SHF | RXTL; writel(val, sport->port.membase + UFCR); - return 0; } #define RX_BUF_SIZE (PAGE_SIZE)