i2c: Fix return value check in i2c-dev
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 10 Dec 2006 20:21:33 +0000 (21:21 +0100)
committerJean Delvare <khali@arrakis.delvare>
Sun, 10 Dec 2006 20:21:33 +0000 (21:21 +0100)
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>

No differences found