diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-11-07 11:07:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-11-08 11:04:39 +0100 |
commit | eb05a8e1d2b48b22aaa1f0444d0db5442abc9b4d (patch) | |
tree | 8b28697563117d853023f32afc8820b2649b710f /include/linux/err.h | |
parent | 40d31b8e45421ed1fb6906a9fe2fca1d75f6b6ef (diff) | |
download | barebox-eb05a8e1d2b48b22aaa1f0444d0db5442abc9b4d.tar.gz barebox-eb05a8e1d2b48b22aaa1f0444d0db5442abc9b4d.tar.xz |
nvmem: remove IS_ERR_VALUE abuses
>From Kernel commit 287980e49ffc ("remove lots of IS_ERR_VALUE abuses"):
| Most users of IS_ERR_VALUE() in the kernel are wrong, as they
| pass an 'int' into a function that takes an 'unsigned long'
| argument. This happens to work because the type is sign-extended
| on 64-bit architectures before it gets converted into an
| unsigned type.
Based on the Kernel commit remove usage of IS_ERR_VALUE() from the
nvmem core.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.barebox.org/20221107100727.2510346-1-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/err.h')
0 files changed, 0 insertions, 0 deletions