Skip to content

Commit

Permalink
serial: sh-sci: disable callback typo fix
Browse files Browse the repository at this point in the history
Avoid invoking the disable callback in case of NULL.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Nov 6, 2009
1 parent 7c9abfb commit 345e5a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ static void serial_console_write(struct console *co, const char *s,
while ((sci_in(port, SCxSR) & bits) != bits)
cpu_relax();

if (sci_port->disable);
if (sci_port->disable)
sci_port->disable(port);
}

Expand Down

0 comments on commit 345e5a7

Please sign in to comment.