Remove duplicate definition of buf

This is declared unconditionally below.