From: Zihao Tang <redacted>
Fix the following checkpatch warnings:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
#365: FILE: ./drivers/tty/serial/clps711x.c:365:
+ unsigned n)
WARNING: suspect code indent for conditional statements (8, 12)
#486: FILE: ./drivers/tty/serial/clps711x.c:486:
+ if (IS_ERR(s->gpios))
+ return PTR_ERR(s->gpios);
WARNING: Statements should start on a tabstop
#487: FILE: ./drivers/tty/serial/clps711x.c:487:
+ return PTR_ERR(s->gpios);
Signed-off-by: Zihao Tang <redacted>
Signed-off-by: Jay Fang <f.fangjian@huawei.com>
---
drivers/tty/serial/clps711x.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/clps711x.c b/drivers/tty/serial/clps711x.c
index 95abc6f..3a7a76c 100644
--- a/drivers/tty/serial/clps711x.c
+++ b/drivers/tty/serial/clps711x.c
@@ -362,7 +362,7 @@ static void uart_clps711x_console_putchar(struct uart_port *port, int ch)
}
static void uart_clps711x_console_write(struct console *co, const char *c,
- unsigned n)
+ unsigned int n)
{
struct uart_port *port = clps711x_uart.state[co->index].uart_port;
struct clps711x_port *s = dev_get_drvdata(port->dev);@@ -484,7 +484,7 @@ static int uart_clps711x_probe(struct platform_device *pdev)
s->gpios = mctrl_gpio_init_noauto(&pdev->dev, 0);
if (IS_ERR(s->gpios))
- return PTR_ERR(s->gpios);
+ return PTR_ERR(s->gpios);
ret = uart_add_one_port(&clps711x_uart, &s->port);
if (ret)
--
2.7.4