printk: use pointer for console_cmdline indexing
authorJoe Perches <joe@perches.com>
Wed, 31 Jul 2013 20:53:46 +0000 (13:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Jul 2013 21:41:03 +0000 (14:41 -0700)
commit23475408c618ecd5b44b7e069fd65ec73d17d9f0
tree5aa2b0afd68c713843a966c4473e486337f353ff
parentbbeddf52adc1b4207674ab88686cbbe58c24f721
printk: use pointer for console_cmdline indexing

Make the code a bit more compact by always using a pointer for the active
console_cmdline.

Move overly indented code to correct indent level.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/printk/printk.c