Skip to contentSkip to conversation

kernel-relayc-drop-unneeded-initialization.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 16, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kernel/relay.c: drop unneeded initialization
has been removed from the -mm tree. Its filename was
kernel-relayc-drop-unneeded-initialization.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Sudip Mukherjee <[email protected]>
Subject: kernel/relay.c: drop unneeded initialization

The variable 'consumed' is initialized with the consumed count but immediately after that the consumed count is updated and assigned to 'consumed' again thus overwriting the previous value. So, drop the unneeded initialization.

---

 kernel/relay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/relay.c renamed from kernel/relay.c~kernel-relayc-drop-unneeded-initialization +1 -1
@@ -1002,7 +1002,7 @@ static int relay_file_read_avail(struct
 	size_t subbuf_size = buf->chan->subbuf_size;
 	size_t n_subbufs = buf->chan->n_subbufs;
 	size_t produced = buf->subbufs_produced;
-	size_t consumed = buf->subbufs_consumed;
+	size_t consumed;
 
 	relay_file_read_consume(buf, 0, 0);
 

_

Patches currently in -mm which might be from [email protected] are