[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZWoATrl_K-xIjzw7@smile.fi.intel.com>
Date: Fri, 1 Dec 2023 17:48:30 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Sudip Mukherjee <sudipm.mukherjee@...il.com>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] parport: Save a few bytes of memory
On Fri, Nov 24, 2023 at 10:14:36PM +0100, Christophe JAILLET wrote:
> 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.
Looks good to have, hence no objection from me,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists