Commit 36834ea8 authored by Daan Vreeken's avatar Daan Vreeken
Browse files

Committer: Daan Vreeken <pa4dan@RacebeestV3.VEHosting.LAN>

	modified:   controller/ec/block_stoeber.c

Initialize 'ret' to the most likely correct value (0). This at least makes the
code take the same path on every invocation. Let's just hope it's the correct
path :)
parent dde8d43f
......@@ -178,6 +178,11 @@ static void calculate_rx(struct controller_block *rx)
enabled = private->enabled;
// TODO: DAAN: 'ret' wasn't initialized before, but this also doesn't
// make too much sense. At least now we'll always take the 'right'
// path.
ret = 0;
if (ret == 0) {
rx_pdo = private->rx_pdo;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment