This won't affect performance.
Everything gets inlined at the end of the day and the optimising part of the compiler won't care about separate variables by the time optimisation has finished.
I compiled two simple pixel shaders that call these two functions and both compile down to 9 instructions in HLSL.
Go for readability and trust that the compiler will do the right thing (on this at least :)).