serial: ns16550_pci: fix possible read of uninitialized variable
When quirk->init is NULL, we evaluate an uninitialized rc.
Is we have already checked for rc < 0 at the point of assignment,
this if clause isn't needed. Remove it.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a6bd302 commit ee6a508d2b1738c30d4e2eab06ce5732d172524d
@Ahmad Fatoum Ahmad Fatoum authored on 12 Feb 2020
Sascha Hauer committed on 14 Feb 2020
Showing 1 changed file
View
drivers/serial/serial_ns16550_pci.c