From patchwork Wed Jan 18 04:35:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak R Varma X-Patchwork-Id: 44959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2140861wrn; Tue, 17 Jan 2023 20:38:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXsMwuwqCh++XyUxNxB4afLWlgcboe+ks7dC40LenxOzp7k9b/uQvCY8I5Ddo/mW80rCH9Vn X-Received: by 2002:a17:907:3e18:b0:84d:3403:f4f2 with SMTP id hp24-20020a1709073e1800b0084d3403f4f2mr7240776ejc.62.1674016694660; Tue, 17 Jan 2023 20:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674016694; cv=none; d=google.com; s=arc-20160816; b=r1ChGtbneA+b9JuXuIfQTy0b5HXC9/cckxf5rlV1htsb4lzK/AvW6F3w6wmolFZRul jbqH3UtyRizt9lE5AL2stxwnAyjEj7FTfwkS+nCuoOMDYYABo7g6WlpzjKWKGHrrRnjw ckrOyDTh+Ebu1FnPqwmEOuL5hyCVePhZSB2IkttGCSJPdve/60/UTBeGVQH3qoOSPO5/ NYwNCa6wRxw7oVRmaShqG03s6+URqAR9KolV3gdl9LfR+kyLBAZ2NTiHlSRfLcShZGMB 44Mp2vw12/MWQRNcnQoS7MDPbY2yWswocxdhnNET31KTyyd6YPOcggriidxuVK1wLDVN 2WjA== 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=SHkCW1YnWSWt/jtz0L+JGIakd6lbKpR4n6BWuX/Tsrs=; b=QWXGpZOna3B6wknRwspK4GCvKqQsYsvRyDKYx0ARuQf8dyrmmzV/0GYBAI9SvAmLmD zHLdB+BInmr8TFFCSem/JQ0joKBDseh+PzLhonip5U5tRbzY44/hf18jVRofTiv4WVPf dCyvECZKHtKu48F45Uua/gEyj0cglgFbz6YhUNM2+bhnprCns0f1SWpzbxiP/BoKfC5m 4kbwPXgALnTlAReoUiq1xC79rk8N0EFvoZjTKYwYSgEPaBdiJ+Ic7PgFrA+HG2GKXDO/ Bxr5x5Rq78OeEfbizE+HFsb3jhyHJ+brh60XV17C51d9WNE9btLFqgt8EerriGfLUCyc rjbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=kBVF1LSu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq18-20020a1709073f1200b0086fd54a8f19si10145602ejc.63.2023.01.17.20.37.51; Tue, 17 Jan 2023 20:38:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=kBVF1LSu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229580AbjAREgD (ORCPT + 99 others); Tue, 17 Jan 2023 23:36:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjAREgA (ORCPT ); Tue, 17 Jan 2023 23:36:00 -0500 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFC4053E62 for ; Tue, 17 Jan 2023 20:35:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1674016548; bh=h+yNXhI9SXruukfRpDrTnL9XhmTYUttAOhF6jVnhhPs=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Type; b=kBVF1LSuqs3GiQe6sbeb3Vgk9iHm8OZzmhl/rE4w8FMeZn0+npta5fe3X64YPUyyT 5XawHHTgJjsqIgduLYzekJhG123Y75FFzTO2tq8gqA1FYCVRCS6IE2tkKvsWjzxLMn bUiT3AgF9O7jTHLEhULIiW6ooqzpeyr5prSqGqXo= Received: by b-5.in.mailobj.net [192.168.90.15] with ESMTP via ip-206.mailobj.net [213.182.55.206] Wed, 18 Jan 2023 05:35:48 +0100 (CET) X-EA-Auth: dndQyncSMpdoSSBz0DuJYA1aUe4jkgKbDtg7hP1Upzhqv3Hh/YDlWow/JyLI5I/FbI5PjyEyX9qy7Y0S+XEOJUM7FVz8hBr7 Date: Wed, 18 Jan 2023 10:05:44 +0530 From: Deepak R Varma To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Saurabh Singh Sengar , Praveen Kumar Subject: [PATCH v2] staging: wlan-ng: Remove unused code Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755333729251565810?= X-GMAIL-MSGID: =?utf-8?q?1755333729251565810?= Following structs are defined but never used. Remove such dead code. hfa384x_pdr_pcb_partnum hfa384x_pdr_pcb_tracenum hfa384x_pdr_nic_serial hfa384x_pdr_mkk_measurements hfa384x_pdr_nic_ramsize hfa384x_pdr_refdac_measurements hfa384x_pdr_vgdac_measurements hfa384x_pdr_level_comp_measurements hfa384x_pdr_mac_address hfa384x_pdr_mkk_callname hfa384x_pdr_regdomain hfa384x_pdr_allowed_channel hfa384x_pdr_default_channel hfa384x_pdr_privacy_option hfa384x_pdr_temptype hfa384x_pdr_refdac_setup hfa384x_pdr_vgdac_setup hfa384x_pdr_level_comp_setup hfa384x_pdr_trimdac_setup hfa384x_pdr_ifr_setting hfa384x_pdr_rfr_setting hfa384x_pdr_hfa3861_baseline hfa384x_pdr_hfa3861_shadow hfa384x_pdr_hfa3861_ifrf hfa384x_pdr_hfa3861_chcalsp hfa384x_pdr_hfa3861_chcali hfa384x_pdr_hfa3861_nic_config hfa384x_pdr_hfo_delay hfa384x_pdr_hfa3861_manf_testsp hfa384x_pdr_hfa3861_manf_testi hfa384x_pdr_end_of_pda Signed-off-by: Deepak R Varma --- Changes in v2: - Include struct names being removed in the commit log. Suggested by Greg Kroah-Hartman Note: Proposed change is compile tested only. drivers/staging/wlan-ng/hfa384x.h | 171 ------------------------------ 1 file changed, 171 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h index 0611e37df6ac..e33dd1b9c40e 100644 --- a/drivers/staging/wlan-ng/hfa384x.h +++ b/drivers/staging/wlan-ng/hfa384x.h @@ -904,40 +904,6 @@ union hfa384x_usbin { *-------------------------------------------------------------------- */ -struct hfa384x_pdr_pcb_partnum { - u8 num[8]; -} __packed; - -struct hfa384x_pdr_pcb_tracenum { - u8 num[8]; -} __packed; - -struct hfa384x_pdr_nic_serial { - u8 num[12]; -} __packed; - -struct hfa384x_pdr_mkk_measurements { - double carrier_freq; - double occupied_band; - double power_density; - double tx_spur_f1; - double tx_spur_f2; - double tx_spur_f3; - double tx_spur_f4; - double tx_spur_l1; - double tx_spur_l2; - double tx_spur_l3; - double tx_spur_l4; - double rx_spur_f1; - double rx_spur_f2; - double rx_spur_l1; - double rx_spur_l2; -} __packed; - -struct hfa384x_pdr_nic_ramsize { - u8 size[12]; /* units of KB */ -} __packed; - struct hfa384x_pdr_mfisuprange { u16 id; u16 variant; @@ -959,150 +925,13 @@ struct hfa384x_pdr_nicid { u16 minor; } __packed; -struct hfa384x_pdr_refdac_measurements { - u16 value[0]; -} __packed; - -struct hfa384x_pdr_vgdac_measurements { - u16 value[0]; -} __packed; - -struct hfa384x_pdr_level_comp_measurements { - u16 value[0]; -} __packed; - -struct hfa384x_pdr_mac_address { - u8 addr[6]; -} __packed; - -struct hfa384x_pdr_mkk_callname { - u8 callname[8]; -} __packed; - -struct hfa384x_pdr_regdomain { - u16 numdomains; - u16 domain[5]; -} __packed; - -struct hfa384x_pdr_allowed_channel { - u16 ch_bitmap; -} __packed; - -struct hfa384x_pdr_default_channel { - u16 channel; -} __packed; - -struct hfa384x_pdr_privacy_option { - u16 available; -} __packed; - -struct hfa384x_pdr_temptype { - u16 type; -} __packed; - -struct hfa384x_pdr_refdac_setup { - u16 ch_value[14]; -} __packed; - -struct hfa384x_pdr_vgdac_setup { - u16 ch_value[14]; -} __packed; - -struct hfa384x_pdr_level_comp_setup { - u16 ch_value[14]; -} __packed; - -struct hfa384x_pdr_trimdac_setup { - u16 trimidac; - u16 trimqdac; -} __packed; - -struct hfa384x_pdr_ifr_setting { - u16 value[3]; -} __packed; - -struct hfa384x_pdr_rfr_setting { - u16 value[3]; -} __packed; - -struct hfa384x_pdr_hfa3861_baseline { - u16 value[50]; -} __packed; - -struct hfa384x_pdr_hfa3861_shadow { - u32 value[32]; -} __packed; - -struct hfa384x_pdr_hfa3861_ifrf { - u32 value[20]; -} __packed; - -struct hfa384x_pdr_hfa3861_chcalsp { - u16 value[14]; -} __packed; - -struct hfa384x_pdr_hfa3861_chcali { - u16 value[17]; -} __packed; - -struct hfa384x_pdr_hfa3861_nic_config { - u16 config_bitmap; -} __packed; - -struct hfa384x_pdr_hfo_delay { - u8 hfo_delay; -} __packed; - -struct hfa384x_pdr_hfa3861_manf_testsp { - u16 value[30]; -} __packed; - -struct hfa384x_pdr_hfa3861_manf_testi { - u16 value[30]; -} __packed; - -struct hfa384x_pdr_end_of_pda { - u16 crc; -} __packed; - struct hfa384x_pdrec { __le16 len; /* in words */ __le16 code; union pdr { - struct hfa384x_pdr_pcb_partnum pcb_partnum; - struct hfa384x_pdr_pcb_tracenum pcb_tracenum; - struct hfa384x_pdr_nic_serial nic_serial; - struct hfa384x_pdr_mkk_measurements mkk_measurements; - struct hfa384x_pdr_nic_ramsize nic_ramsize; struct hfa384x_pdr_mfisuprange mfisuprange; struct hfa384x_pdr_cfisuprange cfisuprange; struct hfa384x_pdr_nicid nicid; - struct hfa384x_pdr_refdac_measurements refdac_measurements; - struct hfa384x_pdr_vgdac_measurements vgdac_measurements; - struct hfa384x_pdr_level_comp_measurements level_compc_measurements; - struct hfa384x_pdr_mac_address mac_address; - struct hfa384x_pdr_mkk_callname mkk_callname; - struct hfa384x_pdr_regdomain regdomain; - struct hfa384x_pdr_allowed_channel allowed_channel; - struct hfa384x_pdr_default_channel default_channel; - struct hfa384x_pdr_privacy_option privacy_option; - struct hfa384x_pdr_temptype temptype; - struct hfa384x_pdr_refdac_setup refdac_setup; - struct hfa384x_pdr_vgdac_setup vgdac_setup; - struct hfa384x_pdr_level_comp_setup level_comp_setup; - struct hfa384x_pdr_trimdac_setup trimdac_setup; - struct hfa384x_pdr_ifr_setting ifr_setting; - struct hfa384x_pdr_rfr_setting rfr_setting; - struct hfa384x_pdr_hfa3861_baseline hfa3861_baseline; - struct hfa384x_pdr_hfa3861_shadow hfa3861_shadow; - struct hfa384x_pdr_hfa3861_ifrf hfa3861_ifrf; - struct hfa384x_pdr_hfa3861_chcalsp hfa3861_chcalsp; - struct hfa384x_pdr_hfa3861_chcali hfa3861_chcali; - struct hfa384x_pdr_hfa3861_nic_config nic_config; - struct hfa384x_pdr_hfo_delay hfo_delay; - struct hfa384x_pdr_hfa3861_manf_testsp hfa3861_manf_testsp; - struct hfa384x_pdr_hfa3861_manf_testi hfa3861_manf_testi; - struct hfa384x_pdr_end_of_pda end_of_pda; } data; } __packed;