xhci: Remove BUG_ON() in xhci_alloc_container_ctx.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 23 Apr 2013 22:49:47 +0000 (15:49 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 14 Jun 2013 20:43:43 +0000 (13:43 -0700)
commit29f9d54b63a6186f1bed3fc15eeab7f98947eebd
tree39ecda3c7042ec1a4d37cb3b1a36115593fb02d8
parent976f8bef9cfb5246bc0e8dc781562daa79cb7aaf
xhci: Remove BUG_ON() in xhci_alloc_container_ctx.

It's horrible coding style to panic the kernel when someone passes you
an argument value you didn't expect.  In the future, we may want to add
additional context types, so it's better to gracefully handle additional
context types instead of panicking.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: John Youn <johnyoun@synopsys.com>
drivers/usb/host/xhci-mem.c