diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-09 12:16:45 +0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-04-02 09:03:37 +0400 |
commit | f5fb0822957b914ab7022cc4bfe000ec3bc9c82c (patch) | |
tree | 394d69bc7cfa47836e3db0152c54b886108a77bb /drivers/i2c/busses/i2c-viperboard.c | |
parent | 19baba4cb6843bbe3dfde87e1e913f6a9cd27da9 (diff) | |
download | linux-f5fb0822957b914ab7022cc4bfe000ec3bc9c82c.tar.xz |
i2c: i2c_del_adapter: Don't treat removing a non-registered adapter as error
Currently i2c_del_adapter() returns -EINVAL when it gets an adapter which is not
registered. But none of the users of i2c_del_adapter() depend on this behavior,
so for the sake of being able to sanitize the return type of i2c_del_adapter
argue, that the purpose of i2c_del_adapter() is to remove an I2C adapter from
the system. If the adapter is not registered in the first place this becomes a
no-op. So we can return success without having to do anything.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-viperboard.c')
0 files changed, 0 insertions, 0 deletions