mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 15:43:59 +08:00
staging: rtl8188eu: simplify array initializations
Simplfy initialization of arrays with zero only values to improve readability and save a line. Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c61583b162
commit
3499477cd9
@ -455,9 +455,8 @@ void write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 *key)
|
||||
|
||||
void clear_cam_entry(struct adapter *padapter, u8 entry)
|
||||
{
|
||||
u8 null_sta[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
u8 null_key[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
u8 null_sta[ETH_ALEN] = {};
|
||||
u8 null_key[16] = {};
|
||||
|
||||
write_cam(padapter, entry, 0, null_sta, null_key);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user