Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/pnp
Jesper Juhl b2111217df isapnp: remove pointless check of 'type' against 0 in isapnp_read_tag()
In drivers/pnp/isapnp/core.c::isapnp_read_tag() there is a test of 'type'
being == 0 a bit down in the function.  That test doesn't make any sense.
If 'type' could indeed be NULL, then the test happens way too late as we'd
already have tried to dereference the pointer earlier and looking at the
callers it also turns out that there is no way type can ever actually be
NULL.

So the test is completely pointless and should just be removed.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-16 09:05:52 -07:00
..
isapnp isapnp: remove pointless check of 'type' against 0 in isapnp_read_tag() 2007-07-16 09:05:52 -07:00
pnpacpi PNP: notice whether we have PNP devices (PNPBIOS or PNPACPI) 2007-05-08 11:15:23 -07:00
pnpbios Use menuconfig objects: PNP 2007-07-16 09:05:40 -07:00
base.h [PATCH] PNP: export pnp_bus_type 2007-02-11 10:51:28 -08:00
card.c PNP: stop using the subsystem rwsem 2007-04-27 10:57:30 -07:00
core.c PNP: notice whether we have PNP devices (PNPBIOS or PNPACPI) 2007-05-08 11:15:23 -07:00
driver.c
interface.c [PATCH] PNP: handle sysfs errors 2006-12-07 08:39:31 -08:00
Kconfig Use menuconfig objects: PNP 2007-07-16 09:05:40 -07:00
Makefile
manager.c [PATCH] reduce pnp syslog spam 2007-03-16 19:25:02 -07:00
quirks.c PNP SMCf010 quirk: work around Toshiba Portege 4000 ACPI issues 2007-07-06 10:23:43 -07:00
resource.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
support.c
system.c [PATCH] Correctly report PnP 64bit resources 2007-04-02 10:06:08 -07:00