[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180320114111.GA18734@archlinux>
Date: Tue, 20 Mar 2018 17:11:11 +0530
From: Pratik Jain <pratik.jain0509@...il.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: arnaud.patard@...-net.org, devel@...verdev.osuosl.org,
gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Staging: xgifb: XGI_main_26.c: Refactored the function
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.
Powered by blists - more mailing lists