[PATCH v2 1/2] string: implement strchrnul
Sascha Hauer
sha at pengutronix.de
Mon Jun 28 05:50:45 PDT 2021
On Mon, Jun 28, 2021 at 07:19:33AM +0200, Ahmad Fatoum wrote:
> We have at least two places opencoding strchrnul, one of them needlessly
> iterating twice instead of once over the string. Replace both by calling
> a common single pass implementation.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list