usb: appledisplay: remove needless check before usb_free_coherent()
authorXu Wang <vulab@iscas.ac.cn>
Mon, 20 Jul 2020 05:24:56 +0000 (05:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2020 11:41:58 +0000 (13:41 +0200)
commitd8a849353c9c7710faa260a1fd11918d1f533e86
treef083659946306ec99b0122790d2eee33d9404e22
parentffeb1e9e897b8d36b197275592d121c96d3bdb95
usb: appledisplay: remove needless check before usb_free_coherent()

usb_free_coherent() is safe with NULL addr and this check is
not required.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20200720052456.7610-1-vulab@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/appledisplay.c