grep: inline the return value of a function call used only once
authorÆvar Arnfjörð Bjarmason <redacted>
Mon, 1 Jul 2019 21:20:54 +0000 (23:20 +0200)
committerJunio C Hamano <redacted>
Mon, 1 Jul 2019 21:33:14 +0000 (14:33 -0700)
commitf463beb805638830e2a6b16359f94d8afca289ee
tree2a1cd02c7c9e9ede916018113cc38174f226c8f1
parentb14cf112e2c3d86de931276c2c778004a168db65
grep: inline the return value of a function call used only once

Since e944d9d932 ("grep: rewrite an if/else condition to avoid
duplicate expression", 2016-06-25) the "ascii_only" variable has only
been used once in compile_regexp(), let's just inline it there.

This makes the code easier to read, and might make it marginally
faster depending on compiler optimizations.

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
grep.c
git clone https://git.99rst.org/PROJECT