summaryrefslogtreecommitdiffstats
path: root/82802ab.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-06-26 11:50:10 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-06-26 11:50:10 +0000
commitbfa021dd80594e51fa25feee56457d545849e312 (patch)
tree07237d27fe48976a6a05894468d7daf7e5275761 /82802ab.c
parent12589366c358e478a765767692209bd6f4ab1c5e (diff)
downloadast2050-flashrom-bfa021dd80594e51fa25feee56457d545849e312.zip
ast2050-flashrom-bfa021dd80594e51fa25feee56457d545849e312.tar.gz
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>
Diffstat (limited to '82802ab.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud