Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1438214 > unrolled thread

[PATCH net-next 3/3] r8152: remove cancel_delayed_work_sync in rtl8152_set_speed

Started byHayes Wang <hayeswang@realtek.com>
First post2016-07-07 09:20 +0200
Last post2016-07-07 09:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH net-next 3/3] r8152: remove cancel_delayed_work_sync in rtl8152_set_speed Hayes Wang <hayeswang@realtek.com> - 2016-07-07 09:20 +0200

#1438214 — [PATCH net-next 3/3] r8152: remove cancel_delayed_work_sync in rtl8152_set_speed

FromHayes Wang <hayeswang@realtek.com>
Date2016-07-07 09:20 +0200
Subject[PATCH net-next 3/3] r8152: remove cancel_delayed_work_sync in rtl8152_set_speed
Message-ID<rSbLj-3Kd-9@gated-at.bofh.it>
There is no conflict between the work_queue function and
rtl8152_set_speed(), so we don't have to cancel the delayed work in
rtl8152_set_speed().

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
---
 drivers/net/usb/r8152.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index f1c5020..168a8e2 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -2829,7 +2829,6 @@ static int rtl8152_set_speed(struct r8152 *tp, u8 autoneg, u16 speed, u8 duplex)
 	u16 bmcr, anar, gbcr;
 	int ret = 0;
 
-	cancel_delayed_work_sync(&tp->schedule);
 	anar = r8152_mdio_read(tp, MII_ADVERTISE);
 	anar &= ~(ADVERTISE_10HALF | ADVERTISE_10FULL |
 		  ADVERTISE_100HALF | ADVERTISE_100FULL);
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web