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:
7c3346d
)
policy: remove BUG_ON() from kdbus_policy_db_clear()
author
Daniel Mack
<daniel@zonque.org>
Wed, 17 Dec 2014 12:14:43 +0000
(13:14 +0100)
committer
Daniel Mack
<daniel@zonque.org>
Wed, 17 Dec 2014 12:14:43 +0000
(13:14 +0100)
There's no reason for checking on this explicitly, and the only users
call that function on an embedded struct anyway, which can't be NULL
at the time of calling.
Signed-off-by: Daniel Mack <daniel@zonque.org>
policy.c
patch
|
blob
|
history
diff --git
a/policy.c
b/policy.c
index affd659bc7a4d6e413d719b9b461ea12b9a9cd6e..427756118796dbc3de514798e5b67ee85b9fff2d 100644
(file)
--- a/
policy.c
+++ b/
policy.c
@@
-144,8
+144,6
@@
void kdbus_policy_db_clear(struct kdbus_policy_db *db)
struct hlist_node *tmp;
unsigned int i;
- BUG_ON(!db);
-
/* purge entries */
down_write(&db->entries_rwlock);
hash_for_each_safe(db->entries_hash, i, tmp, e, hentry) {