Skip to contentSkip to conversation

net: cdc-ncm: cleanup device descriptor

PATCH New Oliver Neukum 1 participant 1 message Feb 10 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: cdc-ncm: cleanup device descriptor

Flags are boolean values, hence they should be typed as bool, not as u8.

---
 include/linux/usb/cdc_ncm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/usb/cdc_ncm.h +2 -2
index 4ac082a63173..97ef37a1ff4a 100644
@@ -118,8 +118,8 @@ struct cdc_ncm_ctx {
 
 	u32 timer_interval;
 	u32 max_ndp_size;
-	u8 is_ndp16;
-	u8 filtering_supported;
+	bool is_ndp16;
+	bool filtering_supported;
 	union {
 		struct usb_cdc_ncm_ndp16 *delayed_ndp16;
 		struct usb_cdc_ncm_ndp32 *delayed_ndp32;
Signature · 1 line
2.53.0