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

From: Pratik Jain
Date: Tue Mar 20 2018 - 07:41:29 EST


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.