Re: [RFC 3/7] staging: fbtft: add lcd controller abstraction

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

 



On Tue, Mar 03, 2015 at 12:57:29PM +0100, Noralf Trønnes wrote:
> >>+	ret = ctrl->rotate(ctrl, rotation);
> >>+	if (!ret)
> >>+		ctrl->rotation = rotation;
> >>+
> >>+	return ret;
> >Better to check "if (ret)" consistently (error handling vs success
> >handling).
> Like this?
> 
> 	ret = ctrl->rotate(ctrl, rotation);
> 	if (ret)
> 		return ret;
> 
> 	ctrl->rotation = rotation;
> 
> 	return 0;
> 

Yeah.  This is a tiny nit.  I feel a bit silly for commenting on it now.

regards,
dan carpenter

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