Skip to content

Commit 48baf9f

Browse files
covanamKAGA-KOKO
authored andcommitted
_RESEND_PATCH_v2_04_19_wifi_rt2x00_Remove_redundant_hrtimer_init_
rt2x00usb_probe() executes a hrtimer_init() for txstatus_timer. Afterwards, rt2x00lib_probe_dev() is called which also initializes this txstatus_timer with the same settings. Remove the redundant hrtimer_init() call in rt2x00usb_probe(). Signed-off-by: Nam Cao <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/all/66116057f788e18a6603d50a554417eee459e02c.1730386209.git.namcao@linutronix.de
1 parent f6e1276 commit 48baf9f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/wireless/ralink/rt2x00/rt2x00usb.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,6 @@ int rt2x00usb_probe(struct usb_interface *usb_intf,
823823

824824
INIT_WORK(&rt2x00dev->rxdone_work, rt2x00usb_work_rxdone);
825825
INIT_WORK(&rt2x00dev->txdone_work, rt2x00usb_work_txdone);
826-
hrtimer_init(&rt2x00dev->txstatus_timer, CLOCK_MONOTONIC,
827-
HRTIMER_MODE_REL);
828826

829827
retval = rt2x00usb_alloc_reg(rt2x00dev);
830828
if (retval)

0 commit comments

Comments
 (0)