]> git.baikalelectronics.ru Git - kernel.git/commit
hostfs: Use kasprintf() instead of fixed buffer formatting
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Mar 2020 13:07:35 +0000 (15:07 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 29 Mar 2020 21:23:00 +0000 (23:23 +0200)
commitbfa9d00e584f8ba42b4cc62ba5249e9fb9de5702
treee7821ac3173db2b5d060c2b28fb6063859ef8cf7
parentb914f782f019f59fb082b26bc23fcb34246ea9b1
hostfs: Use kasprintf() instead of fixed buffer formatting

Improve readability and maintainability by replacing a hardcoded string
allocation and formatting by the use of the kasprintf() helper.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hostfs/hostfs_kern.c