Skip to content

Commit 9d7f327

Browse files
committed
fix(nodes/fpga): Fix cppcheck warning
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
1 parent 7079cf4 commit 9d7f327

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/nodes/fpga.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ int FpgaNode::start() {
221221
// If fastWrite receives less signals than expected, the previous data
222222
// will be reused for the remaining signals
223223
int FpgaNode::fastWrite(Sample *smps[], unsigned cnt) {
224-
Sample *smp = smps[0];
225-
226224
assert(cnt == 1 && smps != nullptr && smps[0] != nullptr);
227225

226+
Sample *smp = smps[0];
227+
228228
for (unsigned i = 0; i < smp->length; i++) {
229229
if (smp->signals->getByIndex(i)->type == SignalType::FLOAT) {
230230
(*accessorTxFloat)[i] = static_cast<float>(smp->data[i].f);

0 commit comments

Comments
 (0)