Skip to content

Commit 4cdc3bb

Browse files
committed
Fixed warnings issued by PVS Studio
1 parent cf025df commit 4cdc3bb

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

include/private/dsp/arch/generic/convolution.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/>
3-
* (C) 2020 Vladimir Sadovnikov <[email protected]>
2+
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/>
3+
* (C) 2023 Vladimir Sadovnikov <[email protected]>
44
*
55
* This file is part of lsp-dsp-lib
66
* Created on: 31 мар. 2020 г.
@@ -71,10 +71,9 @@ namespace lsp
7171
} while (clen >= 4);
7272

7373
// Apply tail
74-
d[0] += /* 0 */ + k[1]*p[3] + k[2]*p[2] + k[3]*p[1];
75-
d[1] += /* 0 */ + /* 0 */ + k[2]*p[3] + k[3]*p[2];
76-
d[2] += /* 0 */ + /* 0 */ + /* 0 */ + k[3]*p[3];
77-
// d[3] += /* 0 */ + /* 0 */ + /* 0 */ + /* 0 */;
74+
d[0] += /* 0 */ k[1]*p[3] + k[2]*p[2] + k[3]*p[1];
75+
d[1] += /* 0 */ /* 0 */ k[2]*p[3] + k[3]*p[2];
76+
d[2] += /* 0 */ /* 0 */ /* 0 */ k[3]*p[3];
7877
}
7978

8079
// Apply tail
@@ -119,7 +118,7 @@ namespace lsp
119118
k++;
120119
}
121120
}
122-
}
123-
}
121+
} /* namespace generic */
122+
} /* namespace lsp */
124123

125124
#endif /* PRIVATE_DSP_ARCH_GENERIC_CONVOLUTION_H_ */

0 commit comments

Comments
 (0)