From patchwork Sat Jul 24 18:34:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salah Triki X-Patchwork-Id: 485773 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CDD9C4338F for ; Sat, 24 Jul 2021 18:35:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2D33A60C51 for ; Sat, 24 Jul 2021 18:35:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230034AbhGXRyd (ORCPT ); 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-Google-Smtp-Source: ABdhPJxJNtYQUouT8g3hMDfErIithvJFi3+MI5uRbKPPMW/dyyA18GQfSC8G4AUom+PQ3CACvDB8ag== 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-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-wireless@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);