From: Doug Anderson Date: Mon, 21 Apr 2014 16:40:35 +0000 (-0700) Subject: serial: samsung: don't check config for every character X-Git-Tag: omap-for-v3.16/pm-signed~45^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab88c8dc3bd667bcf21c8319165db92b930cf7e7;p=pandora-kernel.git serial: samsung: don't check config for every character The s3c24xx_serial_console_putchar() is _only_ ever used by s3c24xx_serial_console_write() and is called in a loop (indirectly through uart_console_write()). There's no reason to call s3c24xx_port_configured() for every iteration through the loop. Move it outside the loop. Signed-off-by: Doug Anderson Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed