resources: tidy __request_region()
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Thu, 16 Oct 2008 05:05:14 +0000 (22:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:51 +0000 (11:21 -0700)
commitc26ec88ea86ad5122a6ea5ad635e6a1f6c395d74
tree8e7e95851dc24327fbdb05c90b2eb0b40f60cadc
parent923f7f6970bd448b8e88b9e4be10fd01fc7106a4
resources: tidy __request_region()

No functional change.  Just return NULL for kzalloc failure immediately,
rather than wrapping the whole function body in the body of an "if".

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/resource.c