Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2303603pxv; Sat, 24 Jul 2021 11:37:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfjuTgSbY8mRkifWUuG+q7jiUlhw4VORd9NtW5tdVTe9GYfQmrGg4ZrBKx1R5eLfjhuX/t X-Received: by 2002:a05:6402:b8f:: with SMTP id cf15mr12174966edb.286.1627151874679; Sat, 24 Jul 2021 11:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627151874; cv=none; d=google.com; s=arc-20160816; b=K4sE8y1LCR2UgicjzofNIjBnDv1GO5n7tGHHEtmvYQ2d97+loYrkcIIL0Kh3SawKaT MzHwMq66C4PE4q6r6QfV/rzsfO/7VmRcT6gonhWw7XNBmiigeUyAhKC94HY26va38gib f4WQrDhtT9nhexnEDVmfjYWB5vLxn2XQwfeRJs1mw8Lwg3bzuP7nR4u3dR87uRdqv8Ln jm6InStabhF6ri1n+kQ+OYEuvhUBYI3CRQnLnuy9taPKLiK1AYzkQWtymdC6ccfDQ7qQ ElXkX0phQSqvRbXFlrsm2/miazWd1pueke50JFdQ009Uz5Vql/CqNh4Zi8oYKV5L90PO rbSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=OYA3ci3b6kMBnU+mtfcyeRkI+VLghBV/ejTMP2wgjbk=; b=AnSwTRaIqjHgTbOfACqu7+r+JhrEWnk8RAqJIrcToG91TY4ONt48JOWkfMSzP+Wyps HjbhgcEJcwsTdPK51PkAbxJvEmsNddrh2WIjh20XX4mZHnPJzh6DwifkK4XXDE0k5mQU c94KVJEj4PaPRjwiJWhnlg93z+H2BIUmU6YK6KD3LLeVyJlf28HFKB4zHtlt2YsogTPx unRWLKoeaO168r4DV4Nw3nVh8hf2+J9kP7w4juyQTpEDLNas4VZ2Cy1wkevtYMuB0lkp dt7f1RPFaa+FkmVtV82BRobyTqeJmU9ZIKATiYhVYzdmmPRDPDS7puuIq5BOENNb/vJw QqbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lcGU5AZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si34197600ejc.71.2021.07.24.11.37.18; Sat, 24 Jul 2021 11:37:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lcGU5AZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbhGXRyd (ORCPT + 99 others); Sat, 24 Jul 2021 13:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbhGXRyc (ORCPT ); Sat, 24 Jul 2021 13:54:32 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07A5FC061575; Sat, 24 Jul 2021 11:35:02 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id hb6so8722796ejc.8; Sat, 24 Jul 2021 11:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=OYA3ci3b6kMBnU+mtfcyeRkI+VLghBV/ejTMP2wgjbk=; b=lcGU5AZkxJgvvkmM0gsKcktB8hiUjMto2PdDe19tqvCNmYH93UeMtcZr5VltvvEj7l zMCYrcHLkEESBOmVTjVf4HOoFQMDWBAXJtUvoSrySLmrdrNcM8bKJXwtRaRrRemwdUSi ImnXqK+YMRCyK3F7R8IMm7IgT8YZzOO6PsSA88TGcpg49lnGUTSESEtMBx8KFj+GnUb+ xUxmWDZNkTz0/jZlin29JCu3tzOJ7gwyYoI6eUDHmqRBeSmYdU06X9YMIoX4juug9e/2 Yt2B9HO1Toa7FEpQk2n/MHkbu7ljdDhhn8sgQ8HnYZTtzWmfM72SrwjycVBbq7vynkEn iHVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=OYA3ci3b6kMBnU+mtfcyeRkI+VLghBV/ejTMP2wgjbk=; b=pPfHzcPsdbSIryevSGDx5KrVtW8ZjkpM9fQAB0crf5X8HwBUeX5/aEJ8wbAhwCkaff 3FunuKN/WXbpqdVFcu3hYQgnXfFbwBGXoFenjgaE6XwDxLwOlo3w0L2CrpaTkAlg6WfD Ngf+B+Bg5nlgGTErGc3ZfPf81BlDwvX54Tv/cQXnZoqMAjOPj0R6Vi8Z3M+/ay0zB6Qc YJD+VQR5oN3WnRbRl8oDv7w/bCgsOZuWBZlvrP8w1Urk0Z7aCj+sukkESOzRduOToGWT Lz7hAOcHegvC70YAORNDCO22+hSNc3c/ZYlReUheZvcKoNX3za+6OvQQpkLx01ybJ/zs qrmQ== X-Gm-Message-State: AOAM5318OQaDxHSmWzOm4yF7EO0xCOoxeT0hh254b0/AfyUH9DD8GcbJ v+UUpNrDZdLOgJg/YUiJa6w= X-Received: by 2002:a17:906:28c4:: with SMTP id p4mr10317176ejd.302.1627151701388; Sat, 24 Jul 2021 11:35:01 -0700 (PDT) Received: from pc ([196.235.233.206]) by smtp.gmail.com with ESMTPSA id i14sm12609218eja.91.2021.07.24.11.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jul 2021 11:35:00 -0700 (PDT) Date: Sat, 24 Jul 2021 19:34:57 +0100 From: Salah Triki To: Herton Ronaldo Krzesinski , Hin-Tak Leung , Larry Finger , Kalle Valo , "David S. Miller" , Jakub Kicinski , gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] wireless: rtl8187: replace udev with usb_get_dev() Message-ID: <20210724183457.GA470005@pc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace udev with usb_get_dev() in order to make code cleaner. Signed-off-by: Salah Triki --- 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