From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935053AbcIPOLX (ORCPT ); Fri, 16 Sep 2016 10:11:23 -0400 Received: from p3plsmtps2ded02.prod.phx3.secureserver.net ([208.109.80.59]:54938 "EHLO p3plsmtps2ded02.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934730AbcIPOLP (ORCPT ); Fri, 16 Sep 2016 10:11:15 -0400 x-originating-ip: 72.167.245.219 From: kys@exchange.microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com Cc: "K. Y. Srinivasan" Subject: [PATCH 2/2] Drivers: hv: get rid of id in struct vmbus_channel Date: Fri, 16 Sep 2016 09:01:18 -0700 Message-Id: <1474041678-17701-3-git-send-email-kys@exchange.microsoft.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1474041678-17701-1-git-send-email-kys@exchange.microsoft.com> References: <1474041638-17658-1-git-send-email-kys@exchange.microsoft.com> <1474041678-17701-1-git-send-email-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfLZAR5F15+bArz8KuNDwa9+KWKpv+AJaiyRWlacB7A/JQjoD0WZDXZtvcJ8/bJ9amHxBhob0SACOp7RBC1gZHfz+vEGlD+fC2WCRfQT+nySzSWNIYEAf JPOYXjnd9MZyxrXN/cJ1j7fGf7UyUlmK5Kfa9pqk6nljz1LEVMqSYXMgBixgNxwXO/LnRxgENr9zF0QvOyGOdfHA0hmhn6LnmeZg35ouVM8M8gVPjWwwpWYx 4ekuzl9S//tFe3UEySVn3GFzEEppilm/fT9UiBBArKy9NcNO2YsZpZNVnFEiI/k7VVgq6zlpbi/YlFalrRAwPAlyYYnnyFNIpI4Hi06KYbiQ20FfX92BCN+C WqwOXtmwd/3HAWwv+OoAyOqdopJOklDvR9YiWv55tB+VF/DLEV7xt2RitaOb9c76mEOOSuuJ/5EFllXBYWW59MrKX0DNK0Cw8RoPrA6tVfkCqLhj0r4= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vitaly Kuznetsov The auto incremented counter is not being used anymore, get rid of it. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 2 -- include/linux/hyperv.h | 3 --- 2 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 759ba4d..96a85cd 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c @@ -274,14 +274,12 @@ EXPORT_SYMBOL_GPL(vmbus_prep_negotiate_resp); */ static struct vmbus_channel *alloc_channel(void) { - static atomic_t chan_num = ATOMIC_INIT(0); struct vmbus_channel *channel; channel = kzalloc(sizeof(*channel), GFP_ATOMIC); if (!channel) return NULL; - channel->id = atomic_inc_return(&chan_num); channel->acquire_ring_lock = true; spin_lock_init(&channel->inbound_lock); spin_lock_init(&channel->lock); diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 7d7cbff..cd184bd 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -706,9 +706,6 @@ struct vmbus_device { }; struct vmbus_channel { - /* Unique channel id */ - int id; - struct list_head listentry; struct hv_device *device_obj; -- 1.7.4.1