Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1223447pxf; Fri, 9 Apr 2021 03:13:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9UNMIClDPLnbXDs2gAtN5TQGVGvBUS4i7Awin0Tao+nvTEwnTBR3KR6mAFXQDCw1FDw7y X-Received: by 2002:a17:906:9501:: with SMTP id u1mr15333166ejx.324.1617963226098; Fri, 09 Apr 2021 03:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617963226; cv=none; d=google.com; s=arc-20160816; b=Pnsx7oIYKv8WzadCa6cb/MzMpUEosE7d4RK/cQNgkF5PGdTx9FDHfCD66bMOvRNroa tQ+sabi8dAZtpRu2lwyJZFBbWtqDTD7hhADUMcGYrqIULAkIWLYwhp0GBXNd1KRQJgmX edQBlMYV4s8oZAm7dG/5Zf7Gj2KSlsGuppMJBgC/OADEBnmYU8X8pG8aNxDXT512hGYH uoXFt6HPTJH6zveHoxzL1ftpljQZ2RYzGjy+DdRw3UBuSIgmAxxdVU4qbvNdQOcrx+yj mzK4dzaGhc2aeAjxnYC5JFCTWP9FuqaBes5c63OG9onv4pA1JWb2M7FEWJOdJay0Jmr9 v/bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pWOSqiWpOhJZjEMGKOoWhzf8snbAJ3zmlA3CV7qQ4vk=; b=rzZoVtxPozn0Fui1qKvV5LwRQFbgRiim27ItwBCDkuT0A17ZFszzv7Lqb/YO9QHCnm kWon/zliIMDYUnoa99PaW6V2ePiFhLjg1KbVOqn38bXAjTcrUWA/qtj2OxcXXBg7Hvlk t1HgqIUEA7DpKskUAExiXZyB1MDW27YHOCbGgJvXwr5j/RnBzZjRF39nqHszm4vtDT/0 l0e/jCUcGHr1I+56m0uennKrKa3Qa5B+/qtYejE+Rqt/yGwovt+nhHV3Ku3aFEHoo6Dp eoPVL3tNxuzBGzP1ttPk99HsVx+yseUCjjif56jpbbAP2FHbdYIQiLyf9wYJqGfrnwAL vhNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F+23DgC5; 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 x24si471924ejc.450.2021.04.09.03.13.22; Fri, 09 Apr 2021 03:13:46 -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=F+23DgC5; 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 S233680AbhDIKM1 (ORCPT + 99 others); Fri, 9 Apr 2021 06:12:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234096AbhDIKEh (ORCPT ); Fri, 9 Apr 2021 06:04:37 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6520C0613AE for ; Fri, 9 Apr 2021 03:01:56 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id n2so7725246ejy.7 for ; Fri, 09 Apr 2021 03:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pWOSqiWpOhJZjEMGKOoWhzf8snbAJ3zmlA3CV7qQ4vk=; b=F+23DgC5BvrPHIFs5vrK/WyibC/UlxnBRr/9ACjgP5kKSpXuWVDEZqGOBi2FjB0gml YEnT31aomgfOgOYJ9UCKDgGhzkooVIzzpgsPaKFnVXcyvCz4IpmYuh3skKvK3uxUcqRL pIPcPON+7SsOLjpfqcqxepmbtnbxfAPWtwnAQIu03vtk9YmK06KQcKN+Ld8DeB/GKbZj FYek9IihA6D/5Tnu2AFG+cCjopa9MdU7/XChyu3JDU4MCq19KiTC/ENaI9IgM1/sqpoO tz1IjcDXtBBtLHkfnY3+MNUB4tp+ZMr2eUuiH+7G756SDcSCCNKk27FhIVwRhuPcbcXA R7ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pWOSqiWpOhJZjEMGKOoWhzf8snbAJ3zmlA3CV7qQ4vk=; b=FyW2afpgJOwswR/e9QLHjWIeM7Oi3TW/WfCTDoOiymsW82Q+I5JmVYW8J04OCDXotL r+MHCfZvQnWcGvmocwBKTNCQgwotF1IfGuRhNZ9Fy9/WhFb0/oM9g6ySp3v8NDdw4FHU IVM6K67myIW04HW4Fy/LhKRs/mY/vKK4EM3UXE3CgJnUH7ARolvTMZuHOu8KOSl8HvcH +b/+UEUqdsrOFpKMwFnR5Uuia4E25amG0OO7pOFdbI50SierlW/qVIJRtH0O6JcoXgcl ydKUkmyKJH18kEWdu/014pN/HvOyOE+Wld9jrqgPipb4PEpOfxGwv26yR8X7FYGtyj0N 3edg== X-Gm-Message-State: AOAM531gZ+JEn+SBnMpvS4wS6uhK7Km36gSgh7f4v/V0H4hm4lKY4HvZ c54ww0Gj6tGP1RyvWUrzsGZWTwK19Ww= X-Received: by 2002:a17:906:8988:: with SMTP id gg8mr14998848ejc.264.1617962515696; Fri, 09 Apr 2021 03:01:55 -0700 (PDT) Received: from agape ([5.171.72.173]) by smtp.gmail.com with ESMTPSA id cf4sm1135685edb.19.2021.04.09.03.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 03:01:55 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 05/11] staging: rtl8723bs: remove set but unused psta variable in rtw_dbg_port() in os_dep/ioctl_linux.c Date: Fri, 9 Apr 2021 12:01:33 +0200 Message-Id: <62b6c48b887decdde4b5343472089665518d205b.1617962215.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove set but unused variable. Fix W=1 compiler warning: drivers/staging/rtl8723bs/os_dep/ioctl_linux.c: In function ‘rtw_dbg_port’: drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:2443:19: warning: variable ‘psta’ set but not used [-Wunused-but-set-variable] struct sta_info *psta; ^~~~ Remove also the function call that sets this variable. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index d70e2d5d51e7..d4392459082d 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -2440,7 +2440,6 @@ static int rtw_dbg_port(struct net_device *dev, u8 major_cmd, minor_cmd; u16 arg; u32 extra_arg, *pdata, val32; - struct sta_info *psta; struct adapter *padapter = rtw_netdev_priv(dev); struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; @@ -2542,7 +2541,6 @@ static int rtw_dbg_port(struct net_device *dev, break; case 0x05: - psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); break; case 0x06: { -- 2.20.1