Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5331128ybi; Sun, 7 Jul 2019 03:01:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlNMJRHQ5zYBaqS/nvxcbuxVqo8kQWpCfupOXViUUGuCqCvmEMtsJZjMyn/5srH1sEUE5y X-Received: by 2002:a63:231c:: with SMTP id j28mr15395889pgj.430.1562493690993; Sun, 07 Jul 2019 03:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562493690; cv=none; d=google.com; s=arc-20160816; b=GBoWAZaAZH/yPJkFiAhX6WhaYH+8Ce7N1mT4+p/fYxFf2KznTgcurZTxmUwZu3gIvH iVLFhISpOeeNDg/pWa2eGZoK6lsE8IQsXgjqI1QDPUfbxrvGlqKxdBAlpn2GuZlPpl8C l9C/T7fdEWDP9uv+hoWl2hlaLyeEriPyFYMZ2G8ddiAcjwiQnE3BccOEKWyRYSwcEY7X siaju/5YNFJwtieejYp+/BaXegXAq5hqagUBQ0p9zrXvnUyzVh5yTBup81rdetuvHIMO jNa1qsDpTgXpBn89vRruIPeuw/RoTBrCyCA25d/i+Vx8sZx96BzYSDoqQdPsXQAvd7h9 Ia7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date; bh=4T9lTuPLAe/dYgMETEIeOiR91PCWDwEcGGVME3X0muo=; b=RlXfuyxiVWURnLyjZa5uJF1BindtntnB4Py+uLf0d3RbM52HDCapC4EIP3owRf1tZp 5boECosjYTTSFMTZRaaE7Gmn7LqGafT3ONtfang9lkKB+/9AniE0SKjNYbBL5jjMsknu 7ugl/55j63DKOtkamrIKX/RTojKP1EyZ6VLQyoQLTX2yspGncXypmfbRkk4EOiZoqUNE wUQm6IoPCDsM5OCKb3jYY9+dol1hfDEx1wXK28gtIoy5ezvL8QZWYkOJveO57ZChLJhC sk2Wew6+wUdXCh2486A+tT9zrcimDDT6qzcErmjYbhHR1PONwlCjlJdUO/4W5C5RLVYB 1hqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b21si14022345plz.21.2019.07.07.03.00.45; Sun, 07 Jul 2019 03:01:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727227AbfGGJ1Z (ORCPT + 99 others); Sun, 7 Jul 2019 05:27:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:42934 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725822AbfGGJ1Z (ORCPT ); Sun, 7 Jul 2019 05:27:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2CBEDAB98; Sun, 7 Jul 2019 09:27:21 +0000 (UTC) Date: Sun, 07 Jul 2019 11:27:20 +0200 Message-ID: From: Takashi Iwai To: "Nicola Lunghi" Cc: , "Thomas Gleixner" , "Greg Kroah-Hartman" , "Allison Randal" , "Jaroslav Kysela" , "Jussi Laako" , Subject: Re: [PATCH v2] ALSA: usb-audio: fix Line6 Helix audio format rates In-Reply-To: <20190707082734.25829-1-nick83ola@gmail.com> References: <20190707082734.25829-1-nick83ola@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 07 Jul 2019 10:27:34 +0200, Nicola Lunghi wrote: > @@ -294,7 +321,7 @@ static int parse_audio_format_rates_v2v3(struct snd_usb_audio *chip, > { > struct usb_device *dev = chip->dev; > unsigned char tmp[2], *data; > - int nr_triplets, data_size, ret = 0; > + int nr_triplets, data_size, ret, ret_l6 = 0; This caused a compile warning: sound/usb/format.c: In function ‘parse_audio_format_rates_v2v3’: sound/usb/format.c:337:30: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized] int nr_triplets, data_size, ret, ret_l6 = 0; ^~~ So I applied with a fix, keeping ret = 0 while dropping the superfluous zero initialization for ret_l6. thanks, Takashi