If \(x + 1\) is a factor of the polynomial \(2x^2 + kx\), then the value of \(k\) is