diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2014-06-05 03:08:05 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 03:54:04 +0400 |
commit | cc6b664aa26de93d9a3f99d4021a8d88b434ed06 (patch) | |
tree | a80c441a939e3a6bd8f9d703b1e89f34fa1ecb6a /Kbuild | |
parent | 1754e44e8291c92b9d981a6eca59f28dd25f03ab (diff) | |
download | linux-cc6b664aa26de93d9a3f99d4021a8d88b434ed06.tar.xz |
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 <daeseok.youn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions