]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arch/x86/kernel/e820.c: quiet sparse noise about plain integer as NULL pointer
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 30 Nov 2011 04:03:06 +0000 (15:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Nov 2011 04:13:34 +0000 (15:13 +1100)
commitd157187206092a328d6d139d18aa25a43d423732
tree93b43d2f4c27642d97604637561aa94a93a04635
parent5ebc0ff301bd9968cae4e40824bd21e8ab871b04
arch/x86/kernel/e820.c: quiet sparse noise about plain integer as NULL pointer

The last parameter to sort() is a pointer to the function used to swap
items.  This parameter should be NULL, not 0, when not used.  This quiets
the following sparse warning:

warning: Using plain integer as NULL pointer

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/kernel/e820.c