Files
linux/drivers
Sarah Sharp e25e62aeca xhci: Fix error path return value.
This patch fixes an issue discovered by Dan Carpenter:

The patch 3b3db02641: "xhci: Add infrastructure for host-specific
LPM policies." from May 9, 2012, leads to the following warning:
drivers/usb/host/xhci.c:3909 xhci_get_timeout_no_hub_lpm()
         warn: signedness bug returning '-22'

  3906          default:
  3907                  dev_warn(&udev->dev, "%s: Can't get timeout for non-U1 or U2 state.\n",
  3908                                  __func__);
  3909                  return -EINVAL;
                        ^^^^^^^^^^^^^^
This should be a u16 like USB3_LPM_DISABLED or something.

  3910          }
  3911
  3912          if (sel <= max_sel_pel && pel <= max_sel_pel)
  3913                  return USB3_LPM_DEVICE_INITIATED;

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
2012-06-13 16:37:25 -07:00
..
2012-05-24 16:22:53 -04:00
2012-05-31 08:46:50 +02:00
2012-05-02 00:25:13 +02:00
2012-05-08 12:35:06 +02:00
2012-05-14 13:37:45 -07:00
2012-05-29 16:22:32 -07:00
2012-06-02 17:09:08 -04:00
2012-05-07 09:56:39 +08:00
2012-05-16 12:46:37 -04:00
2012-06-13 16:37:25 -07:00