Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb-core: Remove Fix mes in file hcd.c

I am removing two fix mes in this file as after dicussing then it seems
there is no reason to check against Null for usb_device as it can never
be NULL and this is check is therefore not needed.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nicholas Krause and committed by
Greg Kroah-Hartman
1c094728 5ee0f803

-4
-4
drivers/usb/core/hcd.c
··· 855 855 struct usb_bus *usb_bus = rh_usb_dev->bus; 856 856 struct usb_hcd *usb_hcd; 857 857 858 - if (usb_bus == NULL) /* FIXME: not sure if this case is possible */ 859 - return -ENODEV; 860 858 usb_hcd = bus_to_hcd(usb_bus); 861 859 return snprintf(buf, PAGE_SIZE, "%u\n", usb_hcd->authorized_default); 862 860 } ··· 869 871 struct usb_bus *usb_bus = rh_usb_dev->bus; 870 872 struct usb_hcd *usb_hcd; 871 873 872 - if (usb_bus == NULL) /* FIXME: not sure if this case is possible */ 873 - return -ENODEV; 874 874 usb_hcd = bus_to_hcd(usb_bus); 875 875 result = sscanf(buf, "%u\n", &val); 876 876 if (result == 1) {