]> granicus.if.org Git - zfs/commit
Remove superfluous statement
authorRichard Yao <ryao@gentoo.org>
Wed, 23 Apr 2014 04:04:41 +0000 (00:04 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 31 May 2014 00:02:37 +0000 (17:02 -0700)
commit2024041b6c5134a925a33c10eff24a47ecb541a6
treecab29b947802495f0a37b0dc965a9b6da65b4449
parent4def05f8a68f7255dfb88606a9b475314c828a06
Remove superfluous statement

Clang's static analyzer reported that the value assigned to pcksum is
never used. That is because we initialize both zc and pcksum to {{ 0 }}
and then do `pcksum = zc;`. That is fairly pointless. However, it has
the effect of generating a false positive in Clang's static analyzer.
Since noise from false positives can obscure real issues, we fix it
anyway.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2330
cmd/zstreamdump/zstreamdump.c