diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2020-07-25 22:50:52 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-07-28 19:37:08 +0300 |
commit | 1b1be3bf27b62f5abcf85c6f3214bdb9c7526685 (patch) | |
tree | f661f3debd12932cdb74cd04c19d175389a5e5d9 /drivers/i2c/algos | |
parent | d076947912696efc1e223b25799a025cd73d6a22 (diff) | |
download | linux-1b1be3bf27b62f5abcf85c6f3214bdb9c7526685.tar.xz |
i2c: slave: improve sanity check when registering
Add check for ERR_PTR and simplify code while here.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Alain Volmat <alain.volmat@st.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/algos')
0 files changed, 0 insertions, 0 deletions