parport: Use kasprintf() instead of fixed buffer formatting
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 Oct 2023 13:31:33 +0000 (16:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2023 08:02:52 +0000 (10:02 +0200)
commit8d8ae17eb0de1fcdff6e7ddee3b641a16eefe8f6
treefd3feb4fd5134b3c8b0c53541e2361bfc1f95c9d
parentc1426d392aebc51da4944d950d89e483e43f6f14
parport: 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>
Link: https://lore.kernel.org/r/20231016133135.1203643-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/procfs.c
drivers/parport/share.c
include/linux/parport.h