projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b72c409
)
IB/cm: Fix device_create() return value check
author
Jani Nikula
<ext-jani.1.nikula@nokia.com>
Thu, 11 Mar 2010 16:17:28 +0000
(16:17 +0000)
committer
Roland Dreier
<rolandd@cisco.com>
Wed, 31 Mar 2010 21:26:52 +0000
(14:26 -0700)
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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/cm.c
b/drivers/infiniband/core/cm.c
index
764787e
..
c9730cb
100644
(file)
--- a/
drivers/infiniband/core/cm.c
+++ b/
drivers/infiniband/core/cm.c
@@
-3693,7
+3693,7
@@
static void cm_add_one(struct ib_device *ib_device)
cm_dev->device = device_create(&cm_class, &ib_device->dev,
MKDEV(0, 0), NULL,
"%s", ib_device->name);
- if (
!cm_dev->device
) {
+ if (
IS_ERR(cm_dev->device)
) {
kfree(cm_dev);
return;
}