]> git.baikalelectronics.ru Git - kernel.git/commit
nvmem: core: remove unneeded NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Jul 2017 09:34:47 +0000 (11:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 15:33:23 +0000 (17:33 +0200)
commitc7829df420217d9f4890425b61f174b552a19a3b
treecdb621c8cd46fcac06a8e951ad9eb9653950e1f2
parentb2a7b439642a1c1bd81224d53b5c3f50fc603fdf
nvmem: core: remove unneeded NULL check

"p" is the list iterator so it can't be NULL.  Static checkers complain
about this unnecessary check because we dereference the list iterator to
get the next item in the list so we'd be in trouble if it really was
NULL.  I have removed the check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c