[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120705180034.GC4519@blackmetal.musicnaut.iki.fi>
Date: Thu, 5 Jul 2012 21:00:34 +0300
From: Aaro Koskinen <aaro.koskinen@....fi>
To: Miguel Gómez <magomez@...lia.com>
Cc: arnaud.patard@...-net.org, gregkh@...uxfoundation.org,
dan.carpenter@...cle.com, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 15/19] Staging: xgifb: Rework conditions in
XGI_SetLockRegs().
Hi,
On Thu, Jul 05, 2012 at 04:45:58PM +0200, Miguel Gómez wrote:
> + if ((pVBInfo->VBType & VB_SIS301LV) &&
> + !(pVBInfo->TVInfo & TVSetHiVision)) {
> + if ((pVBInfo->TVInfo & TVSimuMode) &&
> + (pVBInfo->TVInfo & TVSetPAL)) {
> + if (pVBInfo->VBType & VB_SIS301LV) {
> + if (!(pVBInfo->TVInfo &
> + (TVSetYPbPr525p |
> + TVSetYPbPr750p |
> + TVSetHiVision)))
> + tempbx += 40;
> + } else {
> + tempbx += 40;
I think this could be simplified even more - both branches end up doing
the same?!
A.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists