[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251119130840.14309-1-clintbgeorge@gmail.com>
Date: Wed, 19 Nov 2025 18:38:32 +0530
From: Clint George <clintbgeorge@...il.com>
To: stern@...land.harvard.edu,
gregkh@...uxfoundation.org
Cc: linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org,
david.hunter.linux@...il.com,
linux-kernel-mentees@...ts.linux.dev,
skhan@...uxfoundation.org,
khalid@...nel.org,
Clint George <clintbgeorge@...il.com>
Subject: [PATCH 0/8] usb: gadget: dummy_hcd: coding style improvements and error handling change
This patch series focuses on addressing various coding style issues in
the dummy_hcd USB gadget driver. The changes include simplifying error
handling by preventing kernel-space crashes, improving readability, and
ensuring consistency with kernel coding conventions.
Clint George (8):
usb: gadget: dummy_hcd: replace BUG() with WARN_ON_ONCE()
usb: gadget: dummy_hcd: replace symbolic permissions (S_IRUGO) with
octal (0444)
usb: gadget: dummy_hcd: use 'unsigned int' instead of bare 'unsigned'
usb: gadget: dummy_hcd: fix block comments, blank lines and function
braces
usb: gadget: dummy_hcd: merge multi-line quoted strings into one line
usb: gadget: dummy_hcd: use sizeof(*ptr) instead of sizeof *ptr
usb: gadget: dummy_hcd: remove unnecessary 'else' after return
usb: gadget: dummy_hcd: fix miscellaneous coding style warnings
drivers/usb/gadget/udc/dummy_hcd.c | 139 ++++++++++++++---------------
1 file changed, 67 insertions(+), 72 deletions(-)
--
Testing:
- Verified dummy_hcd module loading and behavior by checking dmesg logs
for expected output.
- Ran compiler testing with no new warnings detected.
- Ensured the module builds and inserts cleanly without issues.
- Used Static Analysis tools to confirm no new issues were introduced.
Please review the changes and let me know if any modifications
or further testing of the module is required.
Thanks,
Clint
2.43.0
Powered by blists - more mailing lists