Subject: [PATCH] wireless: rtl8187: replace udev with usb_get_dev()

From: Salah Triki <[email-masked]>
Date: Sat, 24 Jul 2021 19:34:57 +0100

Replace udev with usb_get_dev() in order to make code cleaner.

Signed-off-by: Salah Triki <[email-masked]>
---
 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c b/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
index eb68b2d3caa1..30bb3c2b8407 100644
--- a/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
+++ b/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
@@ -1455,9 +1455,7 @@ static int rtl8187_probe(struct usb_interface *intf,
 
 	SET_IEEE80211_DEV(dev, &intf->dev);
 	usb_set_intfdata(intf, dev);
-	priv->udev = udev;
-
-	usb_get_dev(udev);
+	priv->udev = usb_get_dev(udev);
 
 	skb_queue_head_init(&priv->rx_queue);
 
-- 
2.25.1