summaryrefslogtreecommitdiffstats
path: root/fs/anon_inodes.c
diff options
context:
space:
mode:
authorJesper Juhl2007-07-16 08:41:53 +0200
committerLinus Torvalds2007-07-16 18:05:52 +0200
commitb2111217df52827916141789c87d614ae45236db (patch)
treeb947351d6b5f744d6d7f261729ebefcad97df71d /fs/anon_inodes.c
parent.gitignore update (diff)
downloadkernel-qcow2-linux-b2111217df52827916141789c87d614ae45236db.tar.gz
kernel-qcow2-linux-b2111217df52827916141789c87d614ae45236db.tar.xz
kernel-qcow2-linux-b2111217df52827916141789c87d614ae45236db.zip
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>
Diffstat (limited to 'fs/anon_inodes.c')
0 files changed, 0 insertions, 0 deletions