padata: get_next is never NULL
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 12 Apr 2017 08:40:19 +0000 (10:40 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Apr 2017 12:30:46 +0000 (20:30 +0800)
commit69b348449bda0f9588737539cfe135774c9939a7
tree24ed0c56142ccd2ffafa7ffafc3024550f5544ec
parentc46ea13f55b629a26d5dd4a22688a5f88cff0906
padata: get_next is never NULL

Per Dan's static checker warning, the code that returns NULL was removed
in 2010, so this patch updates the comments and fixes the code
assumptions.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kernel/padata.c