usb: host: max3421-hcd: Remove pdata test in max3421_hub_control()
authorJules Maselbas <jules.maselbas@grenoble-inp.org>
Tue, 31 Oct 2017 10:40:33 +0000 (11:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 16:11:05 +0000 (17:11 +0100)
commit892f6ebc53ac1a12a26c21eb26d18064461a7007
tree72050dfbb143115a0fe20fdd93f035a8f43c6c96
parent4756f35fdf1403f7f7afaed67a16b6c4a702b903
usb: host: max3421-hcd: Remove pdata test in max3421_hub_control()

We do not have to test if platform_data pointer is null in
max3421_hub_control(), as the driver probe will fail if no
platform_data is found.

Fixes: 721fdc83b31b ("usb: max3421: Add devicetree support")
Signed-off-by: Jules Maselbas <jules.maselbas@grenoble-inp.org>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/max3421-hcd.c