projects
/
platform
/
core
/
system
/
kdbus-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15d38a4
)
handle.c: remove unnecessary pointer assignment
author
Daniel Mack
<daniel@zonque.org>
Fri, 31 Oct 2014 14:35:22 +0000
(15:35 +0100)
committer
Daniel Mack
<daniel@zonque.org>
Fri, 31 Oct 2014 14:35:22 +0000
(15:35 +0100)
No need to assign `ptr' to the return value of idr_replace()
Signed-off-by: Daniel Mack <daniel@zonque.org>
handle.c
patch
|
blob
|
history
diff --git
a/handle.c
b/handle.c
index bd308888e8c2b7a57c56ce56a7b7f358ff6184ee..617af9c4649fc2d450ed2a7ba82deb8ffcb947a6 100644
(file)
--- a/
handle.c
+++ b/
handle.c
@@
-228,7
+228,7
@@
void kdbus_minor_set(dev_t devt, enum kdbus_minor_type type, void *ptr)
ptr = kdbus_minor_pack(type, ptr);
spin_lock(&kdbus_minor_lock);
-
ptr =
idr_replace(&kdbus_minor_idr, ptr, minor);
+ idr_replace(&kdbus_minor_idr, ptr, minor);
spin_unlock(&kdbus_minor_lock);
}