aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorYajun Deng <[email protected]>2024-01-04 03:28:22 +0000
committerGreg Kroah-Hartman <[email protected]>2024-01-04 15:06:32 +0000
commit49a78b05d5ca1e23fd737747a8757b8bdc319b30 (patch)
tree9b6c082d0f6101495782b1501710d9771f0c4cea /lib/test_fortify/write_overflow-strlcpy-src.c
parentarm64: dts: mediatek: mt8195: Add 'rx-fifo-depth' for cherry (diff)
downloadkernel-49a78b05d5ca1e23fd737747a8757b8bdc319b30.tar.gz
kernel-49a78b05d5ca1e23fd737747a8757b8bdc319b30.zip
USB: core: Use device_driver directly in struct usb_driver and usb_device_driver
There is usbdrv_wrap in struct usb_driver and usb_device_driver, it contains device_driver and for_devices. for_devices is used to distinguish between device drivers and interface drivers. Like the is_usb_device(), it tests the type of the device. We can test that if the probe of device_driver is equal to usb_probe_device in is_usb_device_driver(), and then the struct usbdrv_wrap is no longer needed. Clean up struct usbdrv_wrap, use device_driver directly in struct usb_driver and usb_device_driver. This makes the code cleaner. Signed-off-by: Yajun Deng <[email protected]> Acked-by: Alan Stern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions