vmwgfx: strange loop in vmw_kms_update_layout_ioctl()

2011-11-24 Thread Xi Wang
Hi, I came across this code snippet at vmwgfx_kms.c:2000. The loop variable i is never used and rects is checked again and again. Should it be something like rects[i].x instead of rects->x? Thanks. for (i = 0; i < arg->num_outputs; ++i) { if (rects->x < 0 ||

vmwgfx: strange loop in vmw_kms_update_layout_ioctl()

2011-11-24 Thread Xi Wang
Hi, I came across this code snippet at vmwgfx_kms.c:2000. The loop variable i is never used and rects is checked again and again. Should it be something like rects[i].x instead of rects->x? Thanks. for (i = 0; i < arg->num_outputs; ++i) { if (rects->x < 0 ||