summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-pca955x.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2017-08-29 15:47:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-31 19:49:41 +0300
commit5ec6bff199f27c85a37443a854f7c9f1a8c94a9d (patch)
tree6bb5d47702d3050f460b4225d21d3ce8bd8edfc3 /drivers/leds/leds-pca955x.c
parentacf5e051ac44d5dc60b21bc4734ef1b844d55551 (diff)
downloadlinux-5ec6bff199f27c85a37443a854f7c9f1a8c94a9d.tar.xz
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>
Diffstat (limited to 'drivers/leds/leds-pca955x.c')
0 files changed, 0 insertions, 0 deletions