A note on co-maximal ideal graph of commutative rings