All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][next] drivers: hv: remove redundant assignment to pointer primary_channel
@ 2020-04-14 15:23 ` Colin King
  0 siblings, 0 replies; 20+ messages in thread
From: Colin King @ 2020-04-14 15:23 UTC (permalink / raw)
  To: K . Y . Srinivasan, Haiyang Zhang, Stephen Hemminger, Wei Liu,
	linux-hyperv
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The pointer primary_channel is being assigned with a value that is never,
The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/hv/channel_mgmt.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
index ffd7fffa5f83..f7bbb8dc4b0f 100644
--- a/drivers/hv/channel_mgmt.c
+++ b/drivers/hv/channel_mgmt.c
@@ -425,8 +425,6 @@ void hv_process_channel_removal(struct vmbus_channel *channel)
 
 	if (channel->primary_channel == NULL) {
 		list_del(&channel->listentry);
-
-		primary_channel = channel;
 	} else {
 		primary_channel = channel->primary_channel;
 		spin_lock_irqsave(&primary_channel->lock, flags);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-04-16 10:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 15:23 [PATCH][next] drivers: hv: remove redundant assignment to pointer primary_channel Colin King
2020-04-14 15:23 ` Colin King
2020-04-14 15:42 ` Julia Lawall
2020-04-14 15:42   ` Julia Lawall
2020-04-14 16:51 ` Vitaly Kuznetsov
2020-04-14 16:51   ` Vitaly Kuznetsov
2020-04-14 16:58   ` Colin Ian King
2020-04-14 16:58     ` Colin Ian King
2020-04-15 10:43     ` Vitaly Kuznetsov
2020-04-15 10:43       ` Vitaly Kuznetsov
2020-04-15 14:37       ` Wei Liu
2020-04-15 14:37         ` Wei Liu
2020-04-16 10:02         ` Dan Carpenter
2020-04-16 10:02           ` Dan Carpenter
2020-04-16 10:08           ` Colin Ian King
2020-04-16 10:08             ` Colin Ian King
2020-04-14 20:24 ` Wei Liu
2020-04-14 20:24   ` Wei Liu
2020-04-14 21:25   ` Colin Ian King
2020-04-14 21:25     ` Colin Ian King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.