linux-stable/drivers/parport
Colin Ian King bdbddd9ac0 parport: remove non-zero check on count
[ Upstream commit 0be883a0d7 ]

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:45:31 +02:00
..
BUGS-parport
daisy.c
ieee1284.c
ieee1284_ops.c parport: remove non-zero check on count 2021-09-22 11:45:31 +02:00
Kconfig
Makefile
multiface.h
parport_amiga.c
parport_atari.c
parport_ax88796.c
parport_cs.c
parport_gsc.c
parport_gsc.h
parport_ip32.c
parport_mfc3.c
parport_pc.c
parport_serial.c
parport_sunbpp.c
probe.c
procfs.c
share.c
TODO-parport