From 3d313016ba550960eb99b49e651f732433c0055c Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 5 Jun 2019 17:08:43 +0200 Subject: [PATCH] Remove double assignment The `payload` variable is assigned twice. Static program analysis FTW! --- gen-apc-parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen-apc-parsers.py b/gen-apc-parsers.py index 5f168f942..0ffe881a4 100755 --- a/gen-apc-parsers.py +++ b/gen-apc-parsers.py @@ -93,7 +93,7 @@ def generate(function_name, callback_name, report_name, keymap, command_class, i report_cmd = cmd_for_report(report_name, keymap, type_map, payload_allowed) if payload_allowed: payload_after_value = "case ';': state = PAYLOAD; break;" - payload = payload = ', PAYLOAD' + payload = ', PAYLOAD' parr = 'static uint8_t payload[4096];' payload_case = f''' case PAYLOAD: {{