]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] S3C: Remove cpufreq warnings for unset serial information
authorBen Dooks <ben-linux@fluff.org>
Sun, 14 Dec 2008 23:11:02 +0000 (23:11 +0000)
committerBen Dooks <ben-linux@fluff.org>
Thu, 18 Dec 2008 16:35:56 +0000 (16:35 +0000)
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>
drivers/serial/samsung.c

index dc7e7ebad23650543cbfed3e693731879756b8a4..41ac94872b8d952a6b3250cacf3f12432e5ed107 100644 (file)
@@ -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;