Re: [PATCH 15/19] Staging: xgifb: Rework conditions in XGI_SetLockRegs().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux