I'ts easy to prove that if a function is discontinous only at a finite number of points (and bounded of course) then it is Riemann integrable (use induction and isolate the point of discontinuity). Or more generally Lebesgue's criterion for integrability which says a function is Riemann integrable iff the set on which said function is discontinous has measure 0.