usb: otg: Remove the unneeded NULL check
authorShubhrajyoti D <shubhrajyoti@ti.com>
Tue, 7 Aug 2012 14:26:30 +0000 (19:56 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 9 Aug 2012 11:36:58 +0000 (14:36 +0300)
commitdf6791d7042d839b68c58cd7dc3699f9ae5a8f22
treebe0d62b9f3cc8686c6059a55f90df60d8ee4c808
parentc84d364f8178d2bc12827836bf58eb45598262a4
usb: otg: Remove the unneeded NULL check

The function usb_add_phy trusts the sanity of the caller.
Also it accesses x after the NULL check.
Remove the unneeded check.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/otg/otg.c