From 1ad8b49be09810cc2b8c62fcf0c828f5a31363d4 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Fri, 21 Aug 2015 11:37:55 -0400 Subject: [PATCH] hidpp20: avoid writing of uninitialized value The function does not take any argument, so the device ignores it, but valgrind complains. Signed-off-by: Benjamin Tissoires --- src/hidpp20.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hidpp20.c b/src/hidpp20.c index d15f5eab..4870a284 100644 --- a/src/hidpp20.c +++ b/src/hidpp20.c @@ -401,7 +401,6 @@ hidpp20_batterylevel_get_battery_level(struct ratbag_device *device, .msg.report_id = REPORT_ID_LONG, .msg.device_idx = 0xff, .msg.address = CMD_BATTERY_LEVEL_STATUS_GET_BATTERY_LEVEL_STATUS, - .msg.parameters[0] = feature_index, }; int rc;