From: Daeseok Youn Date: Wed, 4 Jun 2014 23:08:05 +0000 (-0700) Subject: mm/dmapool.c: remove redundant NULL check for dev in dma_pool_create() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~160 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc6b664aa26d;p=pandora-kernel.git mm/dmapool.c: remove redundant NULL check for dev in dma_pool_create() "dev" cannot be NULL because it is already checked before calling dma_pool_create(). If dev ever was NULL, the code would oops in dev_to_node() after enabling CONFIG_NUMA. It is possible that some driver is using dev==NULL and has never been run on a NUMA machine. Such a driver is probably outdated, possibly buggy and will need some attention if it starts triggering NULL derefs. Signed-off-by: Daeseok Youn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed