alistair23-linux/drivers/mcb
Christophe JAILLET 5ec6bff199 mcb: Fix an error handling path in 'chameleon_parse_cells()'
If 'chameleon_get_bar()' fails, we will return 0, which mean success.
We should return the corresponding error code instead.

Remove the useless initialisation of 'ret' which was hiding the issue.
(if 'ret' is not set, gcc generates a warning ("warning: ‘ret’ may be used
uninitialized in this function"))

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-31 18:49:41 +02:00
..
Kconfig mcb: Added support for LPC or non PCI based MCB carrier 2016-08-31 13:16:24 +02:00
Makefile mcb: Added support for LPC or non PCI based MCB carrier 2016-08-31 13:16:24 +02:00
mcb-core.c mcb: Add a dma_device to mcb_device 2016-09-27 12:33:47 +02:00
mcb-internal.h mcb: Added bar descriptor support for non PCI bus MCB carrier 2016-08-31 13:16:24 +02:00
mcb-lpc.c MCB: add support for SC31 to mcb-lpc 2017-08-31 18:49:41 +02:00
mcb-parse.c mcb: Fix an error handling path in 'chameleon_parse_cells()' 2017-08-31 18:49:41 +02:00
mcb-pci.c mcb: Enable PCI bus mastering by default 2016-09-27 12:33:47 +02:00