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: rtl8192e: initialize variables at declaration

Initialize two variables at declaration instead of first declare
and then initialize them. This saves a line of code and clears a
checkpatch warning.

WARNING: Missing a blank line after declarations

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240201081824.6998-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Michael Straube and committed by
Greg Kroah-Hartman
72c068a1 2025908b

+2 -3
+2 -3
drivers/staging/rtl8192e/rtllib_rx.c
··· 943 943 static int rtllib_rx_data_filter(struct rtllib_device *ieee, struct ieee80211_hdr *hdr, 944 944 u8 *dst, u8 *src, u8 *bssid, u8 *addr2) 945 945 { 946 - u8 type, stype; 947 946 u16 fc = le16_to_cpu(hdr->frame_control); 948 - type = WLAN_FC_GET_TYPE(fc); 949 - stype = WLAN_FC_GET_STYPE(fc); 947 + u8 type = WLAN_FC_GET_TYPE(fc); 948 + u8 stype = WLAN_FC_GET_STYPE(fc); 950 949 951 950 /* Filter frames from different BSS */ 952 951 if (ieee80211_has_a4(hdr->frame_control) &&