Re: [PATCH 09/17] staging: xgifb: SetFlag: delete EnableChB

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

 



On Mon, Apr 01, 2013 at 02:41:30PM +0300, Aaro Koskinen wrote:
> On Mon, Apr 01, 2013 at 01:30:47PM +0300, Dan Carpenter wrote:
> > On Sat, Mar 30, 2013 at 11:18:05PM +0200, Aaro Koskinen wrote:
> > > @@ -4582,12 +4582,6 @@ static unsigned char XGI_EnableChISLCD(struct vb_device_info *pVBInfo,
> > >  			return 0;
> > >  	}
> > >  
> > > -	if (!(tempbx & EnableChB))
> > > -		return 0;
> > > -
> > > -	if (tempah & 0x01) /* Chk LCDB Mode */
> > > -		return 1;
> > 
> > I don't understand why this return is deleted.
> 
> Because EnableChB was never set in tempbx, the code took always the
> "return 0" path and the remaing code was unreachable. So we have to
> delete it too, otherwise there would be a change in functionality.

Ah, right.  I misread that.  I thought we never took the first
return but we always take it.  Sorry for the noise.

regards,
dan carpenter

_______________________________________________
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