[PATCH 25/30] staging: nvec: Return -1 in PS2 driver if write fails

Dan Carpenter dan.carpenter at oracle.com
Sat Sep 24 10:49:55 UTC 2011


On Fri, Sep 23, 2011 at 06:38:17PM +0200, Julian Andres Klode wrote:
> If nvec_write_async() fails, return -1 in the relevant
> parts of the PS2 driver.
> 

Returning raw -1 is never the right idea.  (It means -EPERM). Save
the return code from the lower layers and return that.

regards,
dan carpenter





More information about the devel mailing list