]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6704515964ad5dab47db918bf8831d5bfc17811
tree72050dfbb143115a0fe20fdd93f035a8f43c6c96
parentcad7ac68e0dbf5d30ddbaef6535099633f838617
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: 115630454a4e ("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