Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp564738pxf; Wed, 24 Mar 2021 10:28:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsfSMOSAWphZYO/PR7Ns3JWNpf3JnX6tQCyCfxhW27BrYytO14fxkWva/FXp6oF9q8Vqxi X-Received: by 2002:aa7:d3d8:: with SMTP id o24mr4640238edr.165.1616606880479; Wed, 24 Mar 2021 10:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616606880; cv=none; d=google.com; s=arc-20160816; b=q1DNR+jrPfraxC3gYOGVWbgmPQm2O8AVWowbNIR8p5lvJACKSRLZDl2tklqEMte9jP e/3zsJ3tqKuY18IuRdRG2maNcs/1mpmqHX9BLWOeE0pcyGvbbr5a2H0e3A7zsBXTV/uo bigEYBYuSjo2GHHSQINF7M5qYBu5880cYQKdj49wXfpboyLuiQc6ta4Awvu+DsovXoqE dcfu3Nla0GQiRXROz3Z3Pt42cOAZ0Dhzf0DrEAYvzAPwjnL6N3fvwfxJ1B7jTMNCaG9H WlfXxH+YOgVwKz/j5kKT5NFoYJqhlIwJt+krvvRlXy5+G4geBLUxnSvjrOOvoLlBfMR1 KaaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=KizuK1VUhVYZ48HlzjbMOXlUT2sfsfq66m33DGRHaDI=; b=GWzErp1x4pG+fDzHDhIllje6j+EMO2UTRPWs0DFMVxchPyQwf606AJPExaZErwYFjy iR6mzscvL5UieMU51qDX06ioEe/6smDPJI8ZUAJw6VH4yIuQw5OFaiEt9cD6esD1njfW tacB6noDqpWkpcExcqwuXjSfZprbiU9KsBin34FHvPBnlbiZw2nWTEfYju5A2uQdKjSY TJ70QcuWAonUUSs2KS64DUWpOUvITzQ+mCb7PngF5Q1jqp+Odt/mjA5nyyunmKkGkabz jU+xzTJuU2vGyipHrB6AIXQ60bGI6dELiLAZIa/fWPjfYnwCsvc+61jwI1jAzPL+Xr68 IIBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pTh311UJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x21si2255056eju.471.2021.03.24.10.27.36; Wed, 24 Mar 2021 10:28:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pTh311UJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237037AbhCXR0Y (ORCPT + 99 others); Wed, 24 Mar 2021 13:26:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236825AbhCXR0L (ORCPT ); Wed, 24 Mar 2021 13:26:11 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D55F6C061763; Wed, 24 Mar 2021 10:26:10 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id bx7so28535748edb.12; Wed, 24 Mar 2021 10:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=KizuK1VUhVYZ48HlzjbMOXlUT2sfsfq66m33DGRHaDI=; b=pTh311UJjSMALDPHdTIuQ2TAW4axDn3TxMJaqRD0M1BwPSq8SPmnuncRIrqbsboujF JMpXF6lNo0Md2Mh/RvlfJ14OuRjR/IIsOXFD5G560slXerkaDQf7ULOdTl3S7WYM19XN 2PKbgBfDq/2voTg61Tivx9eTYi/U4pcreDTccTBCqqolQPigwPa+VdQmGXO05Ns/yveY xD+u5e1pveYeIp1Pi+McEa3H/jgvSdWTjRS+fSgnCH07QkYYmNBI6xV1ECbn9+j13T3Q CXKWBKfIQ1jSErkJYAWVioHIDHVlYGG3HkScsj901niA+MzKWk+1mqrEU7vICryk6sYV szlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=KizuK1VUhVYZ48HlzjbMOXlUT2sfsfq66m33DGRHaDI=; b=klIcFTqhNyofxRWT7JeinRL+8wm8xBluwhZurpfNQ2KY2AEhaRza9n29ADysPZY34Z hSwycMHzQXksY8z0+NR1GArg4pif1c7oiKV4/xYTratkyidP3YSLfwuWYCi5DRlUMShC x6SA3ihiSXkuuo+cvVTK6P1srGu386j/47T0GJ69iW2ZekokOXKPdiSXzc1Y3PDQDnG4 PZNGt+uZ5ceD7IMCHHAvryIUwwPQSwJ+TwTpIHtv5YGkslG/6VrCIK3z/lK3gyFg5tvL HsmwI8VjIDY+ejUVhAGTSpFLbDMaui+Y2sQwOEsDGhjSmN9nHFHC0XlVptdbAjHWk6GE AwMg== X-Gm-Message-State: AOAM531T+5s/HTP8s6KEozdsdpffyvGDTfsaHsr2ollel/IiFEb6pRif CdB9+kDgh5x7DI9LWfWM9fE= X-Received: by 2002:a05:6402:4242:: with SMTP id g2mr4589027edb.329.1616606769634; Wed, 24 Mar 2021 10:26:09 -0700 (PDT) Received: from LEGION ([111.119.187.57]) by smtp.gmail.com with ESMTPSA id x1sm1233872eji.8.2021.03.24.10.26.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 10:26:09 -0700 (PDT) Date: Wed, 24 Mar 2021 22:26:04 +0500 From: Muhammad Usama Anjum To: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, colin.king@canonical.com, dan.carpenter@oracle.com Cc: musamaanjum@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: usb-audio: Fix missing return assignment Message-ID: <20210324172604.GA380592@LEGION> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return value of usb_driver_claim_interface should not be ignored. Instead it should be stored in err variable and returned from this function. Signed-off-by: Muhammad Usama Anjum --- sound/usb/quirks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 9e5e37eff10e..dd32ceaef18a 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -427,10 +427,10 @@ static int create_autodetect_quirks(struct snd_usb_audio *chip, err = create_autodetect_quirk(chip, iface, driver); if (err >= 0) - usb_driver_claim_interface(driver, iface, (void *)-1L); + err = usb_driver_claim_interface(driver, iface, (void *)-1L); } - return 0; + return err; } /* -- 2.25.1