diff options
| author | Andy Shevchenko <[email protected]> | 2023-10-16 16:31:33 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-10-18 10:02:52 +0200 |
| commit | 8d8ae17eb0de1fcdff6e7ddee3b641a16eefe8f6 (patch) | |
| tree | fd3feb4fd5134b3c8b0c53541e2361bfc1f95c9d /include/linux | |
| parent | c1426d392aebc51da4944d950d89e483e43f6f14 (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
| -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 */ |