Skip to content

Commit 2024041

Browse files
ryaobehlendorf
authored andcommitted
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
1 parent 4def05f commit 2024041

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cmd/zstreamdump/zstreamdump.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ main(int argc, char *argv[])
127127
}
128128

129129
send_stream = stdin;
130-
pcksum = zc;
131130
while (ssread(drr, sizeof (dmu_replay_record_t), &zc)) {
132131

133132
if (first) {

0 commit comments

Comments
 (0)