I have a simple op amp buffer circuit and was wondering whether there would be any downsides to replacing the feedback resistor with a pot wired as a variable resistor in order to control op amp gain. As far as I can tell the below circuit should give me roughly 20 dB of gain with the pot fully CW (2K feedback resistor, 220R to VREF) and unity gain with the pot fully CCW.