Skip to contentSkip to conversation

kdbus: Use conditional operator

PATCH Hillf Danton 1 participant 1 message Oct 9, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines
---
 ipc/kdbus/names.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
ipc/kdbus/names.c +0 -0
index bf44ca3f12b6..6b31b38ac2ad 100644

ipc/kdbus/names.c static void kdbus_name_release_unlocked(struct kdbus_name_owner *owner) · line 441

Quoted 8 lines
ipc/kdbus/names.c +1 -4
@@ -438,10 +438,7 @@ static void kdbus_name_release_unlocked(struct kdbus_name_owner *owner)
 		name->activator = NULL;
 
 	if (!primary || owner == primary) {
-		next = kdbus_name_entry_first(name);
-		if (!next)
-			next = name->activator;
-
+		next = kdbus_name_entry_first(name) ?: name->activator;

Fix? Cleanup? What we gain, given no log message?

Quoted 7 lines
ipc/kdbus/names.c +0 -1
 		if (next) {
 			/* hand to next in queue */
 			next->flags &= ~KDBUS_NAME_IN_QUEUE;
--

1.8.3.1