serial: imx: Remove unneeded of_device_get_match_data() NULL check
authorFabio Estevam <festevam@gmail.com>
Thu, 26 Nov 2020 12:46:43 +0000 (09:46 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:48:10 +0000 (19:48 +0100)
commit603012f78a3f5cb2e7f529b8e318321117a9cf7c
tree3f29aa287a09a5c789cec0d9938f8a392d5bfa91
parentfa26b3263fd5f58a7f0cd7b3c6cea75ce714f87b
serial: imx: Remove unneeded of_device_get_match_data() NULL check

Since 5.10-rc1 i.MX is a devicetree-only platform and the NULL check on
of_device_get_match_data() is no longer needed.

This check was only needed when this driver supported both DT and non-DT
platforms.

Remove the unneeded of_device_get_match_data() NULL check.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20201126124643.3371-1-festevam@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c