From: Szymon Janc <szymon.janc@xxxxxxxxx> Value stored in val is never read before writing it again. After fixing val same applies to attr variable. --- audio/avrcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/avrcp.c b/audio/avrcp.c index e3ce2fb..2517df8 100644 --- a/audio/avrcp.c +++ b/audio/avrcp.c @@ -1944,8 +1944,8 @@ static bool ct_set_setting(struct media_player *mp, const char *key, const char *value, void *user_data) { struct avrcp_player *player = user_data; - int attr = attr_to_val(key); - int val = attrval_to_val(attr, value); + int attr; + int val; struct avrcp *session; session = player->sessions->data; -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html