]> git.karo-electronics.de Git - mv-sheeva.git/commit
dca: remove unneeded NULL check
authorDan Carpenter <error27@gmail.com>
Thu, 13 Jan 2011 00:59:42 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:09 +0000 (08:03 -0800)
commitf0f2c2b5b40b5e621a47a6a274117cce77841f1e
tree1ca673aaf564af6a91468ca807b99b5b28dc23dd
parent455cd5ab305c90ffc422dd2e0fb634730942b257
dca: remove unneeded NULL check

The return here doesn't release the locks or re-enable IRQs.  But as
Andrew Morton points out, domain is never NULL.  list_first_entry()
essentially never returns NULL and also we already verified that the list
is not empty.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/dca/dca-core.c