Skip to content

Commit

Permalink
[ARM] S3C: Remove cpufreq warnings for unset serial information
Browse files Browse the repository at this point in the history
As noted by Russell King, do not print any warnings if the
uinfo or tty fields are not set when a CPU frequency change
is sent.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Ben Dooks committed Dec 18, 2008
1 parent 5bdf673 commit 7de40c2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/serial/samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -937,17 +937,13 @@ static int s3c24xx_serial_cpufreq_transition(struct notifier_block *nb,
struct ktermios *termios;
struct tty_struct *tty;

if (uport->info == NULL) {
printk(KERN_WARNING "%s: info NULL\n", __func__);
if (uport->info == NULL)
goto exit;
}

tty = uport->info->port.tty;

if (tty == NULL) {
printk(KERN_WARNING "%s: tty is NULL\n", __func__);
if (tty == NULL)
goto exit;
}

termios = tty->termios;

Expand Down

0 comments on commit 7de40c2

Please sign in to comment.