diff options
author | Christian Eggers <ceggers@arri.de> | 2020-01-23 13:20:45 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-01-27 10:57:42 +0100 |
commit | 73dda8a0f7b5f3fdec45b8cb9e936fac79105ab7 (patch) | |
tree | ad74986e8eaea9a28cb79f6d7797c3f0bed9b47c /common | |
parent | a28332268849ae13c0fba6d0fd3e6b18b380e214 (diff) | |
download | barebox-73dda8a0f7b5f3fdec45b8cb9e936fac79105ab7.tar.gz barebox-73dda8a0f7b5f3fdec45b8cb9e936fac79105ab7.tar.xz |
parameter: Return NULL instead of ENOSYS if CONFIG_PARAMETER is disabled
This reverts 03b59bdb64 ("paramter: The dev_add_param_*() return
ERR_PTR(), change no-ops to return ERR_PTR(-ENOSYS) instead of NULL").
Most callers of dev_add_param_*() don't care about whether
CONFIG_PARAMETER is enabled or not. The remaining ones have already been
prepared for getting a NULL pointer. As a result, these callers will not
fail itself, only because CONFIG_PARAMETER (which is always optional) is
disabled.
Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions