Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

staging: rtl8723bs: remove dead debugging code in rtw_mlme_ext.c

Remove the unused local variable 'pattrib' and the unreachable 'if (0)'
debug block in OnAction_sa_query to clean up the driver code.

Signed-off-by: Luka Gejak <lukagejak5@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20260130185658.207785-6-lukagejak5@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Luka Gejak and committed by
Greg Kroah-Hartman
8ae0398e 3db12482

-9
-9
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
··· 1838 1838 unsigned int OnAction_sa_query(struct adapter *padapter, union recv_frame *precv_frame) 1839 1839 { 1840 1840 u8 *pframe = precv_frame->u.hdr.rx_data; 1841 - struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; 1842 1841 struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv); 1843 1842 unsigned short tid; 1844 1843 ··· 1852 1853 break; 1853 1854 default: 1854 1855 break; 1855 - } 1856 - if (0) { 1857 - int pp; 1858 - 1859 - netdev_dbg(padapter->pnetdev, "pattrib->pktlen = %d =>", pattrib->pkt_len); 1860 - for (pp = 0; pp < pattrib->pkt_len; pp++) 1861 - pr_cont(" %02x ", pframe[pp]); 1862 - pr_cont("\n"); 1863 1856 } 1864 1857 1865 1858 return _SUCCESS;