linux/drivers/memory/samsung
Krzysztof Kozlowski c4f16e96d8 memory: samsung: exynos5422-dmc: Do not ignore return code of regmap_read()
Check for regmap_read() return code before using the read value in
following write in exynos5_switch_timing_regs().  Pass reading error
code to the callers.

This does not introduce proper error handling for such failed reads (and
obviously regmap_write() error is still ignored) because the driver
ignored this in all places.  Therefor it only fixes reported issue while
matching current driver coding style:

       drivers/memory/samsung/exynos5422-dmc.c: In function 'exynos5_switch_timing_regs':
    >> drivers/memory/samsung/exynos5422-dmc.c:216:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2020-07-24 09:42:44 +02:00
..
exynos5422-dmc.c memory: samsung: exynos5422-dmc: Do not ignore return code of regmap_read() 2020-07-24 09:42:44 +02:00
exynos-srom.c memory: samsung: Rename Exynos to lowercase 2020-01-07 20:46:32 +01:00
exynos-srom.h memory: samsung: Add SPDX license identifiers 2018-02-12 19:55:34 +01:00
Kconfig memory: samsung: Rename Exynos to lowercase 2020-01-07 20:46:32 +01:00
Makefile memory: Add DMC driver for Exynos5422 2019-10-01 20:28:38 +02:00