forked from Minki/linux
USB: ehci-fsl: Remove casting the return value which is a void pointer
Casting the return value which is a void pointer is redundant. The conversion from void pointer to any other pointer type is guaranteed by the C programming language. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
46c73d1d3e
commit
37c3a3c4ff
@ -57,7 +57,7 @@ static int usb_hcd_fsl_probe(const struct hc_driver *driver,
|
||||
pr_debug("initializing FSL-SOC USB Controller\n");
|
||||
|
||||
/* Need platform data for setup */
|
||||
pdata = (struct fsl_usb2_platform_data *)dev_get_platdata(&pdev->dev);
|
||||
pdata = dev_get_platdata(&pdev->dev);
|
||||
if (!pdata) {
|
||||
dev_err(&pdev->dev,
|
||||
"No platform data for %s.\n", dev_name(&pdev->dev));
|
||||
|
Loading…
Reference in New Issue
Block a user