IB/cm: Fix device_create() return value check
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Thu, 11 Mar 2010 16:17:28 +0000 (16:17 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 31 Mar 2010 21:26:52 +0000 (14:26 -0700)
commit3e340c05c0def3bb68db6751299b7821c2ba0621
tree80842344ef8689c8e44307bedbfa719fbb30322a
parentb72c40949b0f04728f2993a1434598d3bad094ea
IB/cm: Fix device_create() return value check

Use IS_ERR() instead of comparing to NULL.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cm.c