A note on curvature of Riemannian manifolds