]> git.baikalelectronics.ru Git - kernel.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)
commit4521f4fd367563d76115de767cd5a058262cd7a1
tree09ffce08ad018f5a4cf2b0b6f42af0704946e6e4
parent8d0af22cf639c945b7688a13bc0355d881459470
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