1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-11-05 15:40:41 +01:00
Files
flashrom/processor_enable.c
Carl-Daniel Hailfinger bfa021dd80 Replace sizeof("string")-1 with strlen("string")
We want to avoid calls to strlen at runtime if the string is already
known at compile time.
Turns out that gcc and clang will recognize constant strings and compute
the strlen result already at compile time, so trickery with sizeof only
reduces readability but does not improve the code.

Corresponding to flashrom svn r1352.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Sean Nelson <audiohacked@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
2011-06-26 11:50:10 +00:00

2.5 KiB