diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2023-07-25 20:28:09 +0800 |
---|---|---|
committer | Damien Le Moal <dlemoal@kernel.org> | 2023-07-26 08:32:21 +0900 |
commit | 1cfe2d28e4d50a4e3e49344ade3b28f8dc26f891 (patch) | |
tree | c6c4e0be8db4fd55b82817d73105c77e195ea952 /drivers/counter | |
parent | 4139f992c49356391fb086c0c8ce51f66c26d623 (diff) |
ata: pata_octeon_cf: fix error return code in octeon_cf_probe()
The variable 'rv' is set to 0 after calling of_property_read_reg(), so
it cannot be used as an error code. Change to using correct error codes
in the error path.
Fixes: d0b2461678b1 ("ata: Use of_property_read_reg() to parse "reg"")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'drivers/counter')
0 files changed, 0 insertions, 0 deletions