diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2006-12-10 21:21:33 +0100 |
---|---|---|
committer | Jean Delvare <khali@arrakis.delvare> | 2006-12-10 21:21:33 +0100 |
commit | 3bacb36db01c7541ffea21d4ff39219e8b211a5c (patch) | |
tree | 52d89e1c11c22e75aabe37c5bbeeb6800e0e247c /ipc | |
parent | 250d1bd3f4ed0b50d79b3ec81ccefbabb203f916 (diff) |
i2c: Fix return value check in i2c-dev
device_create() returns error code as pointer on failures.
This patch checks the return value of device_create() by using IS_ERR().
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions