Fix: variables uninitialized

This commit is contained in:
Rin Cat (鈴猫) 2021-12-04 08:44:06 -05:00
parent f3f32eb5f7
commit 16223935bb
No known key found for this signature in database
GPG Key ID: 40DCF18E97150795
3 changed files with 4 additions and 4 deletions

View File

@ -7016,7 +7016,7 @@ ssize_t proc_set_tx_deauth(struct file *file, const char __user *buffer, size_t
char tmp[16];
u8 mac_addr[NUM_STA][ETH_ALEN];
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
u32 key_type;
u32 key_type = 0;
u8 index;

View File

@ -10267,7 +10267,7 @@ static int issue_action_ba(_adapter *padapter, unsigned char *raddr, unsigned ch
u16 start_seq;
u16 BA_para_set;
u16 BA_timeout_value;
u16 BA_starting_seqctrl;
u16 BA_starting_seqctrl = 0;
struct xmit_frame *pmgntframe;
struct pkt_attrib *pattrib;
u8 *pframe;
@ -15045,7 +15045,7 @@ operation_by_state:
#ifdef CONFIG_SCAN_BACKOP
case SCAN_BACKING_OP: {
u8 back_ch, back_bw, back_ch_offset;
u8 back_ch = 0, back_bw = 0, back_ch_offset = 0;
u8 need_ch_setting_union = _TRUE;
#ifdef CONFIG_MCC_MODE

View File

@ -812,7 +812,7 @@ __inline static union recv_frame *rxmem_to_recvframe(u8 *rxmem)
__inline static union recv_frame *pkt_to_recvframe(_pkt *pkt)
{
u8 *buf_star;
u8 *buf_star = NULL;
union recv_frame *precv_frame;
precv_frame = rxmem_to_recvframe((unsigned char *)buf_star);