android_kernel_xiaomi_sm7250/drivers/parport
Colin Ian King d84d3b7ffb parport: remove non-zero check on count
[ Upstream commit 0be883a0d795d9146f5325de582584147dd0dcdc ]

The check for count appears to be incorrect since a non-zero count
check occurs a couple of statements earlier. Currently the check is
always false and the dev->port->irq != PARPORT_IRQ_NONE part of the
check is never tested and the if statement is dead-code. Fix this
by removing the check on count.

Note that this code is pre-git history, so I can't find a sha for
it.

Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Logically dead code")
Link: https://lore.kernel.org/r/20210730100710.27405-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 11:48:08 +02:00
..
BUGS-parport Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
daisy.c
ieee1284_ops.c parport: remove non-zero check on count 2021-09-22 11:48:08 +02:00
ieee1284.c parport: ieee1284: mark expected switch fall-throughs 2018-07-15 14:13:00 +02:00
Kconfig docs: Fix some broken references 2018-06-15 18:10:01 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
multiface.h
parport_amiga.c
parport_atari.c
parport_ax88796.c parport: ax88796: Delete an unnecessary variable initialisation in parport_ax88796_probe() 2018-03-14 17:54:09 +01:00
parport_cs.c drivers/parport: use module_pcmcia_driver() in pcmcia drivers 2013-03-15 12:26:38 -07:00
parport_gsc.c parisc/parport_gsc: Use NULL to avoid sparse warning 2018-03-27 18:52:21 +02:00
parport_gsc.h
parport_ip32.c
parport_mfc3.c parport: cleanup statics initialization to NULL or 0 2017-08-28 17:25:43 +02:00
parport_pc.c parport_pc: fix find_superio io compare code, should use equal test. 2019-03-23 20:10:05 +01:00
parport_serial.c parport: parport_serial: Add WCH CH382L PCIe single parallel port support 2018-07-07 17:35:10 +02:00
parport_sunbpp.c parport: sunbpp: fix error return code 2018-07-15 14:13:00 +02:00
probe.c
procfs.c
share.c parport: load lowlevel driver if ports not found 2019-12-31 16:36:01 +01:00
TODO-parport Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00