summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2014-10-03 09:31:25 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-10-10 16:18:26 +1100
commit842af9537556af0291eb4d9198e097663902cae1 (patch)
tree60efacb716e0b069d88dd93301dd86cfb40c4c4a
parentc5250c0e62fbcfa0779f4672952ecea16197bcf3 (diff)
lib-vsprintf-add-%pe-format-specifier-fix
tidy up comment layout, per Joe Cc: "John W . Linville" <linville@tuxdriver.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--lib/vsprintf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 44dbd90f49e9..d57551c031f4 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -1111,12 +1111,11 @@ char *escaped_string(char *buf, char *end, u8 *addr, struct printf_spec spec,
int len;
if (spec.field_width == 0)
- /* nothing to print */
- return buf;
+ return buf; /* nothing to print */
if (ZERO_OR_NULL_PTR(addr))
- /* NULL pointer */
- return string(buf, end, NULL, spec);
+ return string(buf, end, NULL, spec); /* NULL pointer */
+
do {
switch (fmt[count++]) {