diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-12-17 22:31:32 +0300 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-01-23 18:15:57 +0300 |
commit | d10e03cf9a4d78c67ef779dab5a5f4fb94fb835e (patch) | |
tree | 90f0cda9ad30a612706897707010173841d11761 /drivers/edac/edac_pci.h | |
parent | b8631e4b96bb4b0c4f5a57d5767afe5e56eba075 (diff) | |
download | linux-d10e03cf9a4d78c67ef779dab5a5f4fb94fb835e.tar.xz |
memory: emif: Simplify code handling CONFIG_OF
The first thing that of_get_memory_device_details() does is calling
of_parse_phandle(). With CONFIG_OF=n this returns NULL in a static
inline function. So the compiler can determine that
of_get_memory_device_details() also returns NULL. bloat-o-meter confirms
that this patch has no effects on the size of the generated code for
CONFIG_OF=n builds.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/9d53683c34a730c8579a1468b643b11d1379106e.1702829744.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'drivers/edac/edac_pci.h')
0 files changed, 0 insertions, 0 deletions