From: Ben Dooks Date: Sun, 14 Dec 2008 23:11:02 +0000 (+0000) Subject: [ARM] S3C: Remove cpufreq warnings for unset serial information X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7de40c216c15c02c453f17b6c9ecee83f93790f1;p=linux-beck.git [ARM] S3C: Remove cpufreq warnings for unset serial information 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 --- diff --git a/drivers/serial/samsung.c b/drivers/serial/samsung.c index dc7e7ebad236..41ac94872b8d 100644 --- a/drivers/serial/samsung.c +++ b/drivers/serial/samsung.c @@ -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;