diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-02-04 12:00:52 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2016-02-04 14:20:06 +1100 |
commit | 427dddfcf1c3311fbbdbb14f4c5556e3e41e6934 (patch) | |
tree | 31243e3ece61fc89f2c8c404d94df73c3567dc64 | |
parent | b68f254d265675d650c47c496c0080890feee3bd (diff) | |
download | linux-next-427dddfcf1c3311fbbdbb14f4c5556e3e41e6934.tar.gz |
lib/string_helpers: fix indentation in few places
Fix the indentation of label and put snprintf() to one line.
There is no functional change.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Robert Elliott <elliott@hpe.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | lib/string_helpers.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/string_helpers.c b/lib/string_helpers.c index c62acc0583a7..6e91f316561c 100644 --- a/lib/string_helpers.c +++ b/lib/string_helpers.c @@ -117,14 +117,13 @@ void string_get_size(u64 size, u64 blk_size, const enum string_size_units units, tmp[j+1] = '\0'; } - out: +out: if (i >= STRING_UNITS_2_NUM) unit = "UNK"; else unit = units_str[units][i]; - snprintf(buf, len, "%u%s %s", (u32)size, - tmp, unit); + snprintf(buf, len, "%u%s %s", (u32)size, tmp, unit); } EXPORT_SYMBOL(string_get_size); |