Re: [PATCH 04/11] fbdev: ssd1307fb: fix error return code

2015-09-01 Thread Tomi Valkeinen
On 23/08/15 03:11, Julia Lawall wrote: > Propagate error code on failure. Also changed %ld to %d in dev_err to use > ret variable rather than putting two calls to PTR_ERR. > > A simplified version of the semantic match that finds the first problem is as > follows: (http://coccinelle.lip6.fr/) >

[PATCH 04/11] fbdev: ssd1307fb: fix error return code

2015-08-22 Thread Julia Lawall
Propagate error code on failure. Also changed %ld to %d in dev_err to use ret variable rather than putting two calls to PTR_ERR. A simplified version of the semantic match that finds the first problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\