diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-10-16 16:31:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-18 10:02:52 +0200 |
commit | 8d8ae17eb0de1fcdff6e7ddee3b641a16eefe8f6 (patch) | |
tree | fd3feb4fd5134b3c8b0c53541e2361bfc1f95c9d /include | |
parent | c1426d392aebc51da4944d950d89e483e43f6f14 (diff) | |
download | lwn-8d8ae17eb0de1fcdff6e7ddee3b641a16eefe8f6.tar.gz lwn-8d8ae17eb0de1fcdff6e7ddee3b641a16eefe8f6.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/parport.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/parport.h b/include/linux/parport.h index 999eddd619b7..fff39bc30629 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h @@ -180,8 +180,6 @@ struct ieee1284_info { struct semaphore irq; }; -#define PARPORT_NAME_MAX_LEN 15 - /* A parallel port */ struct parport { unsigned long base; /* base address */ |