Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c094728 authored by Nicholas Krause's avatar Nicholas Krause Committed by Greg Kroah-Hartman
Browse files

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: default avatarNicholas Krause <xerofoify@gmail.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5ee0f803
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -855,8 +855,6 @@ static ssize_t authorized_default_show(struct device *dev,
	struct usb_bus *usb_bus = rh_usb_dev->bus;
	struct usb_bus *usb_bus = rh_usb_dev->bus;
	struct usb_hcd *usb_hcd;
	struct usb_hcd *usb_hcd;


	if (usb_bus == NULL)	/* FIXME: not sure if this case is possible */
		return -ENODEV;
	usb_hcd = bus_to_hcd(usb_bus);
	usb_hcd = bus_to_hcd(usb_bus);
	return snprintf(buf, PAGE_SIZE, "%u\n", usb_hcd->authorized_default);
	return snprintf(buf, PAGE_SIZE, "%u\n", usb_hcd->authorized_default);
}
}
@@ -871,8 +869,6 @@ static ssize_t authorized_default_store(struct device *dev,
	struct usb_bus *usb_bus = rh_usb_dev->bus;
	struct usb_bus *usb_bus = rh_usb_dev->bus;
	struct usb_hcd *usb_hcd;
	struct usb_hcd *usb_hcd;


	if (usb_bus == NULL)	/* FIXME: not sure if this case is possible */
		return -ENODEV;
	usb_hcd = bus_to_hcd(usb_bus);
	usb_hcd = bus_to_hcd(usb_bus);
	result = sscanf(buf, "%u\n", &val);
	result = sscanf(buf, "%u\n", &val);
	if (result == 1) {
	if (result == 1) {