[PATCH] Staging: xgifb: XGI_main_26.c: Refactored the function

Pratik Jain pratik.jain0509 at gmail.com
Tue Mar 20 11:41:11 UTC 2018


You got a valid point about `++i` and `i++`. But I still feel
that it is less complicated than previous one. I am explicitly
saying(in first loop) that we are skipping some values to get
to a specific index. Apart from that, we can avoid unncessary
wrapping and indentation. Logic becomes much more explicit if
broken down to two loops.


More information about the devel mailing list