Smooth solution to the one-dimensional inhomogeneous non-automorphic Landau–Lifshitz equation