summaryrefslogtreecommitdiff
path: root/drivers/misc/eeprom
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-11-24 22:14:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-07 11:09:31 +0900
commitad66d503052d51ff9efeab487f41a39816ffc11c (patch)
tree7ad560ecf23b7a195489eb333f3b405805c93ec4 /drivers/misc/eeprom
parent190015a4bb016e0263297fa5ad20744b8ce98b50 (diff)
parport: Save a few bytes of memory
Most of parport_register_dev_model() callers pass a 'name' that is a constant string. So kstrdup_const() can be used to save the duplication of this string when it is not needed. This saves a few bytes of memory. Use kfree_const() accordingly when this string is freed. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/0eba5f2ddd142ab0f577f67e482d1152b40ee720.1700860416.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/eeprom')
0 files changed, 0 insertions, 0 deletions