Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1315632
| From | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 2/4] lib/string_helpers: fix indentation in few places |
| Date | 2016-01-23 16:00 +0100 |
| Message-ID | <qU7Ps-48H-27@gated-at.bofh.it> (permalink) |
| References | <qU7Ps-48H-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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> --- lib/string_helpers.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/string_helpers.c b/lib/string_helpers.c index 86124c9..2ebd724 100644 --- a/lib/string_helpers.c +++ b/lib/string_helpers.c @@ -94,14 +94,13 @@ void string_get_size(u64 size, u64 blk_size, const enum string_size_units units, tmp[j+1] = '\0'; } - out: +out: if (i >= ARRAY_SIZE(string_units_2)) 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); -- 2.7.0.rc3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 0/4] x86/efi: use binary units when printing Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-01-23 16:00 +0100
[PATCH v3 2/4] lib/string_helpers: fix indentation in few places Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-01-23 16:00 +0100
[PATCH v3 4/4] x86/efi: Use proper units in efi_find_mirror() Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-01-23 16:00 +0100
[PATCH v3 1/4] lib/string_helpers: export string_units_{2,10} for others Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-01-23 16:00 +0100
Re: [PATCH v3 1/4] lib/string_helpers: export string_units_{2,10} for others James Bottomley <James.Bottomley@HansenPartnership.com> - 2016-01-23 17:20 +0100
Re: [PATCH v3 1/4] lib/string_helpers: export string_units_{2,10} for others Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-01-23 18:00 +0100
Re: [PATCH v3 0/4] x86/efi: use binary units when printing James Bottomley <James.Bottomley@HansenPartnership.com> - 2016-01-23 17:40 +0100
Re: [PATCH v3 0/4] x86/efi: use binary units when printing Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-01-23 18:30 +0100
csiph-web