Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3052683rdg; Tue, 17 Oct 2023 03:13:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF2hbhGPRYmNQU7P0ga+rEkcht24juqTh9fcvg+opY15YEs0tUJqRpPlzkCcx+eg7nk+myW X-Received: by 2002:aca:2b0d:0:b0:3b2:d8cb:8e14 with SMTP id i13-20020aca2b0d000000b003b2d8cb8e14mr881737oik.28.1697537594058; Tue, 17 Oct 2023 03:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697537594; cv=none; d=google.com; s=arc-20160816; b=uHh9gBedtq0S/yBsF8/NJQ+ZcvWxz7OD3iNGOMlie5m+IyVbLu7hwzVi/GHNYwF7x3 1b9LyNuubd+MC5S3z+6lZA42aljVaKWoHlrTZtlmY288UMLNt7G3+lLOTo9+cXr/OdVQ EOMsy/I+NU7LAjLsj3TExbV+hUNBkXAQoJkxQcb+3PNyzplddD9NEdxUnNmIhjzXjw2n LqPpQHVkCWD882SA+GT0LnRbLw/NT0oMrY7eTFh2vNr6qAm2ToTB3Ch/nqoHls1+yrXW 8YO5Y8z5XMAUWYZpJ3/sDCxc7XF/z+8AbUerZGJJBKy7xvwzwf8ipZ9uy4QIYZqlB683 7dQA== 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=E8E7YoxZ2av3orSrcaFfg8f95nyYUaTpAzrG7yxUAnU=; fh=pYZR4hqkn8IXcBQowslXpT93yLlBXEf0NI8R/pabuRI=; b=aYYfJDgmrpo5yHjwgwlZFV77QVyWNP6DYahUQLXqqZ+lH+t8X4syrvDR1q7+v76SCk o7qMvkgMJlre1H9QSS2Kur5BuTwaOmtE9N1eL1ZFku7syPpGwZUt/FCorlV9RgDn9Dvp GIc6QXsebeHX0h79TPtqJ1F9t+ANaqROwm5XRn9keI1P9u6hZSXO+43XAxtxrcQtc5m3 YlGiNoal6W4/BNpRmVypfjQJLEgJ2an3LBrtX/E7WaQDJn9S1EKohgViP5O4nIFThGu/ oB5j2kmckLFi4IGCvy1OEbjBJ2BJndhK20xzpudDygL+JU58G7F2vKpKeBiyA7tX0kgk dlWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Z407z6pW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id b22-20020a639316000000b005898d64820esi1364159pge.322.2023.10.17.03.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 03:13:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Z407z6pW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7E2618037AA7; Tue, 17 Oct 2023 03:13:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234852AbjJQKNF (ORCPT + 99 others); Tue, 17 Oct 2023 06:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234809AbjJQKND (ORCPT ); Tue, 17 Oct 2023 06:13:03 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1CB1E8 for ; Tue, 17 Oct 2023 03:13:01 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-406402933edso54988435e9.2 for ; Tue, 17 Oct 2023 03:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697537580; x=1698142380; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=E8E7YoxZ2av3orSrcaFfg8f95nyYUaTpAzrG7yxUAnU=; b=Z407z6pWTFSh+5gF1UxgXvG1qeQN5Ls0HgEy75VsQEGd3hM0sVCE/lxg1rSZko6adi 42Vhxko4pTMlKb2xUGeNOk2Y1z+Rdj83uv+m9538jVptuoOmSOMw/MwOZY5O09WGV7Pp tAKh/TSJdTI7HbfBeiG++ayGm38PUv+uvrhnugMNbi/leHyiOrFDyIsPUT/BiJiDTeg1 RuqSEya+DH5mgG0T19/prVaHHr4GOxoFM0dNakCNxQO2O7lT6ZocEnXo85/OUKrcDSJR i5yadOMjjEM3Zs4ceTOp/4kunJUsmHp8HCJBpQZLlj4XX0tmq5zvewSOkgOn9+Y+MQmh tQdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697537580; x=1698142380; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=E8E7YoxZ2av3orSrcaFfg8f95nyYUaTpAzrG7yxUAnU=; b=oZqUcbuWN+4uRzs2zWdoSLU4WbnQ/ffeUQ1TAYvu05iU2MHmfz2DJQp6n6RCS3ZECJ s8RX+1Qu/dGUSMXPNo8i8UtMUXiVLWodOZP1IEpNkp8Nuv3XNCZcKPDlfKBlUbza4ZM1 kM2gMLtgvSfNy3Pl8RCQAVizXgZYoFBC5+Gzr9cPDIrRDCNAFap0augrUP0cJeJtgdwv oyoCuUJp8xII5ESX19ktNEIiM+FvI8920pN4HFcoWFu5LxtBEuSHf87gN1Y2N+mjk0IX eei7DzsWqbiS1mDtPqN8Pif3LFvY28UlzudwmJNeluJ7vtsDv2ZEIkTI3n7I1qjH+gFL c3Wg== X-Gm-Message-State: AOJu0Yyae6/6zwgR53F2VEVS1Ka92RuQDebfmFfOHTDTM4/p+8CMt4QU /KNPpkXUsAGeimHlffUncEIqqEGMd5l5VQ== X-Received: by 2002:adf:e504:0:b0:32d:b7d4:b90 with SMTP id j4-20020adfe504000000b0032db7d40b90mr1560360wrm.39.1697537579751; Tue, 17 Oct 2023 03:12:59 -0700 (PDT) Received: from lab-ubuntu ([41.90.67.11]) by smtp.gmail.com with ESMTPSA id y7-20020adffa47000000b0031aef72a021sm1323918wrr.86.2023.10.17.03.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 03:12:59 -0700 (PDT) Date: Tue, 17 Oct 2023 13:12:56 +0300 From: Calvince Otieno To: gustavo@embeddedor.com, outreachy@lists.linux.dev Cc: Greg Kroah-Hartman , Calvince Otieno , Bagas Sanjaya , Deepak R Varma , Simon Horman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] staging: wlan-ng: remove function prism2sta_ev_txexc Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 03:13:11 -0700 (PDT) The function prism2sta_ev_txexc() is called by the function hfa384x_usbin_txcompl() to print the transmit exception event - a debug information using netdev_dbg(). The debugging utility function can be called directly by hfa384x_usbin_txcompl(). Signed-off-by: Calvince Otieno --- drivers/staging/wlan-ng/hfa384x_usb.c | 2 +- drivers/staging/wlan-ng/prism2mgmt.h | 4 +--- drivers/staging/wlan-ng/prism2sta.c | 24 ------------------------ 3 files changed, 2 insertions(+), 28 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c index 3e8c92675c82..35650f911ebc 100644 --- a/drivers/staging/wlan-ng/hfa384x_usb.c +++ b/drivers/staging/wlan-ng/hfa384x_usb.c @@ -3194,7 +3194,7 @@ static void hfa384x_usbin_txcompl(struct wlandevice *wlandev, /* Was there an error? */ if (HFA384x_TXSTATUS_ISERROR(status)) - prism2sta_ev_txexc(wlandev, status); + netdev_dbg(wlandev->netdev, "TxExc status=0x%x.\n", status); else prism2sta_ev_tx(wlandev, status); } diff --git a/drivers/staging/wlan-ng/prism2mgmt.h b/drivers/staging/wlan-ng/prism2mgmt.h index 8c3f1ac35913..17222516e85e 100644 --- a/drivers/staging/wlan-ng/prism2mgmt.h +++ b/drivers/staging/wlan-ng/prism2mgmt.h @@ -45,9 +45,7 @@ extern int prism2_reset_settletime; u32 prism2sta_ifstate(struct wlandevice *wlandev, u32 ifstate); -void prism2sta_ev_info(struct wlandevice *wlandev, - struct hfa384x_inf_frame *inf); -void prism2sta_ev_txexc(struct wlandevice *wlandev, u16 status); +void prism2sta_ev_info(struct wlandevice *wlandev, struct hfa384x_inf_frame *inf); void prism2sta_ev_tx(struct wlandevice *wlandev, u16 status); void prism2sta_ev_alloc(struct wlandevice *wlandev); diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c index 964164bb4165..cb6c7a9fb8f3 100644 --- a/drivers/staging/wlan-ng/prism2sta.c +++ b/drivers/staging/wlan-ng/prism2sta.c @@ -1748,30 +1748,6 @@ void prism2sta_ev_info(struct wlandevice *wlandev, } } -/* - * prism2sta_ev_txexc - * - * Handles the TxExc event. A Transmit Exception event indicates - * that the MAC's TX process was unsuccessful - so the packet did - * not get transmitted. - * - * Arguments: - * wlandev wlan device structure - * status tx frame status word - * - * Returns: - * nothing - * - * Side effects: - * - * Call context: - * interrupt - */ -void prism2sta_ev_txexc(struct wlandevice *wlandev, u16 status) -{ - netdev_dbg(wlandev->netdev, "TxExc status=0x%x.\n", status); -} - /* * prism2sta_ev_tx * -- 2.34.1