Permalink
Browse files

udlctd: break out of the cursor overlay loop at line end

if line end is reached, there is no point continuing the
loop that will do nothing in each iteration; just break
out of it

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
  • Loading branch information...
1 parent b2d3dde commit f660e09e8d2e0bdffcd20cf8740bc20d57553a34 Ilija Hadzic committed Nov 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 drivers/gpu/drm/ctd/udlctd/udlctd_usb.c
@@ -675,7 +675,7 @@ static int udlctd_render_hline(struct udlctd_info *udlctd_info, struct urb **urb
for (i = 0; i < vcrtcm_cursor->width; i++) {
if (hline_pixel >= (uint32_t *) line_end)
- continue;
+ break;
alpha_overlay_argb32(hline_pixel, cursor_pixel);
cursor_pixel++;

0 comments on commit f660e09

Please sign in to comment.