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> |
---|
|
drivers/serial/serial_ns16550_pci.c |
---|