diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-09-01 16:52:05 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-01 11:45:02 -0700 |
commit | 56fcd40f8a51db475389856f31685a1b87a3cc9c (patch) | |
tree | b8ee62b470b13d38fcf2326661df51bed9e7d83e /net/netlabel | |
parent | dc161162e42ca51daff50e86a4a4bb8395d60501 (diff) | |
download | linux-56fcd40f8a51db475389856f31685a1b87a3cc9c.tar.gz linux-56fcd40f8a51db475389856f31685a1b87a3cc9c.tar.bz2 linux-56fcd40f8a51db475389856f31685a1b87a3cc9c.zip |
netlabel: remove redundant assignment to pointer iter
Pointer iter is being initialized with a value that is never read and
is being re-assigned a little later on. The assignment is redundant
and hence can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlabel')
-rw-r--r-- | net/netlabel/netlabel_kapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlabel/netlabel_kapi.c b/net/netlabel/netlabel_kapi.c index 2b0ef55cf89e..409a3ae47ce2 100644 --- a/net/netlabel/netlabel_kapi.c +++ b/net/netlabel/netlabel_kapi.c @@ -607,7 +607,7 @@ catmap_getnode_alloc: */ int netlbl_catmap_walk(struct netlbl_lsm_catmap *catmap, u32 offset) { - struct netlbl_lsm_catmap *iter = catmap; + struct netlbl_lsm_catmap *iter; u32 idx; u32 bit; NETLBL_CATMAP_MAPTYPE bitmap; |