Orthogonal frequency division multiplexing (OFDM) systems with direct-conversion architecture suffer from both carrier frequency offset (CFO) and dc offset (DCO). In this paper, we study CFO estimation problem for OFDM systems with time-varying DCO (TV-DCO) caused by gain mode switch of low noise amplifier (LNA). Based on linear approximation of TV-DCO, a blind algorithm is proposed for CFO estimation by means of DCO compensation and power leakage minimization. Performance of the proposed algorithm is demonstrated by simulations.