diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-12-10 23:31:25 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-09 20:25:07 (GMT) |
commit | bec1a4f8696c44ce96398dceab8aba4785ec8ea9 (patch) | |
tree | 4e9a3ed50c76f6f33d48499c5c84af3b9a1f1ad8 /kernel/kexec.c | |
parent | 4f66e9d70edf73e796486199f847ad5402bf0eac (diff) | |
download | linux-fsl-qoriq-bec1a4f8696c44ce96398dceab8aba4785ec8ea9.tar.xz |
staging: comedi: drivers: fix return value of comedi_load_firmware()
commit c6236c0ce39c809c336ca929f68cf8ad02cf94e0 upstream.
Some of the callback functions that upload the firmware in the comedi
drivers return a positive value indicating the number of bytes sent
to the device. Detect this condition and just return '0' to indicate
a successful upload.
Reported-by: Bernd Porr <mail@berndporr.me.uk>
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Ian Abbott <abbotti@mev.co.uk>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/kexec.c')
0 files changed, 0 insertions, 0 deletions