linux_old1/drivers/pnp/isapnp
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
..
Kconfig Use menuconfig objects: PNP 2007-07-16 09:05:40 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
core.c isapnp: remove pointless check of 'type' against 0 in isapnp_read_tag() 2007-07-16 09:05:52 -07:00
proc.c [PATCH] mark struct file_operations const 5 2007-02-12 09:48:45 -08:00