diff options
author | Andy Shevchenko <[email protected]> | 2023-09-18 16:51:16 +0300 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2023-09-21 18:31:19 +0200 |
commit | 6cb9c8637c672584d4915559001020237840acba (patch) | |
tree | d1d32b56e1e58297d6fcf43021e836249d44ac15 /drivers/fpga/fpga-mgr.c | |
parent | e621198016e99cddc097d32cd3b56b15cee27d91 (diff) |
platform/x86: think-lmi: Use strreplace() to replace a character by nul
We can replace
p = strchrnul(str, '$OLD');
*p = '\0';
with
strreplace(str, '$OLD', '\0');
that does the compatible modification without a need of the temporary variable.
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions