Type casting from unsigned int to int performed in stats computation is unnecessary, window_.width is unsigned and the array index is always non-negative. Let's simply use unsigned int in all the SwStatsCpu:stats* methods. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Umang Jain <uajain@igalia.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>