]> git.karo-electronics.de Git - linux-beck.git/commit
staging/mei: propagate error codes up in the write flow
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 14 Mar 2012 12:39:42 +0000 (14:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Mar 2012 19:14:25 +0000 (12:14 -0700)
commit1ccb7b6249f9bc50678e2a383084ed0a34cc9239
tree09ffce08ad018f5a4cf2b0b6f42af0704946e6e4
parent5f9092f36fa8707d487a911299b21d6df846319c
staging/mei: propagate error codes up in the write flow

Change mei_write_message's return type from bool to int
to enable propagation of the error code up to caller functions.
The function now returns -EIO when low level write fails and 0
on success.
A similar change is done in intermediate caller functions:
mei_send_flow_control, mei_connect, and mei_disconnect

This makes code more alike to typical Linux kernel error
handling.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mei/init.c
drivers/staging/mei/interface.c
drivers/staging/mei/interrupt.c
drivers/staging/mei/iorw.c
drivers/staging/mei/main.c
drivers/staging/mei/wd.c