Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e34dc490 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Mark Brown
Browse files

regmap: debugfs: use snprintf return value in regmap_reg_ranges_read_file()



Calling strlen() no less than three times on entry is silly. Since
we're formatting into a buffer with plenty of room, there's no chance
of truncation, so snprintf() has actually returned the value we want,
meaning we don't even have to call strlen once.

Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9ae3109d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment