HomeFreeBSD

Remove superfluous statement

Description

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

Details

Provenance
Richard Yao <ryao@gentoo.org>Authored on Apr 23 2014, 4:04 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 31 2014, 12:02 AM
Parents
rG4def05f8a68f: Fix memory leak in zpool_clear_label()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2024041b6c51: Remove superfluous statement (authored by Richard Yao <ryao@gentoo.org>).May 31 2014, 12:02 AM