commit | fd08611317a3397d8dd54c68e98afc8396fa11f7 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Jul 26 11:34:47 2017 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Aug 28 17:33:23 2017 +0200 |
tree | cdb621c8cd46fcac06a8e951ad9eb9653950e1f2 | |
parent | d026d70a2e9460dc701d20b48672b80a2656006d [diff] |
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>