diff options
author | 2017-08-16 07:31:03 +0200 | |
---|---|---|
committer | 2017-08-16 07:38:27 -0700 | |
commit | c88c094985ad38c6f71ab5b0d3d68757db14c8b2 (patch) | |
tree | 6990101a2c0585c17e7b2bc76d59973dd99445a6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | libata: fix a couple of doc build warnings (diff) | |
download | wireguard-linux-c88c094985ad38c6f71ab5b0d3d68757db14c8b2.tar.xz wireguard-linux-c88c094985ad38c6f71ab5b0d3d68757db14c8b2.zip |
sata: ahci-da850: Fix some error handling paths in 'ahci_da850_probe()'
'rc' is known to be 0 at this point.
If 'platform_get_resource()' or 'devm_ioremap()' fail, return -ENOMEM
instead of 0 which means success.
tj: Changed error code from -ENOMEM to -ENODEV for get_resource
failure as suggested by Sergei.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions