Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp699140ybt; Fri, 26 Jun 2020 09:24:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu0empg5KF8W0aTXeFPJVy6wn/yXSjpHFS5h7vvMxIeAzOA3e8AHHBHhuwzzPEt8m8A/27 X-Received: by 2002:a05:6402:1592:: with SMTP id c18mr4323199edv.258.1593188649224; Fri, 26 Jun 2020 09:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593188649; cv=none; d=google.com; s=arc-20160816; b=NwuxcciosGIG+Gq5Wb+OJcNeYT+GGtQXnqAFoLO0WnvqANwzO/M7pkOr80aa2OWr15 UZIf3e+uDRybsoTu7nrzKVnTGC2RXT9UauQcmSg269y8cbOb1rrAjWVxUmQ7obnDNM+9 iJR3AhUFMNNgtdX8ONxz/e+VXbFz6VJiMBTZBMCOPq4oHEXdAM6F7xpTg2BhZSOMtWp5 MvjmPpLo1bPAh9JG3RwtSu1iCws9/vzyVVdIjCpbdnZo7dL+CQHw9gWOyMVTGR4ti0Ea W01vK1d77lE1WZV036jkPJXvOuOgOumbL0GePIC71ZGTYlR2BOAG3KyVrBR8ByytHil6 Gs7w== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=K+eySfNXUpiN/lURMPOaYsxDUDM6j/d0Py29hVK13Tc=; b=ruaiC99xuCLj6wEXs+6Of8Qs8O6I7ITk13UNKDO83H5avidIEbOqErj3oMuczlbw+G Zed8+BDkOGYLjX09OkiOX4bihlwnQB/7P4mzWwvgOzOHWop1WnwR7yQCrhprggj2/RkA QQKxXsOi2ohG8snD8GkL31RyFZWUDOOB248LkZ+8gIh1tDvcOj82exBSis3inhhVWbGp KVC2Bj1HR0v6QgrMp4xNnX5en+zwxdmt9djaf4KCKQ3gkzWZIsC8ePmPEs0PtETlVdzA gTclmdFt+Cquhanpp4E9gXHumJWKvGHICzro3dvMbQujQwk3kVY2nGGh06OnWhyUNBcF z05w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si9463827edw.583.2020.06.26.09.23.46; Fri, 26 Jun 2020 09:24:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729313AbgFZOjq convert rfc822-to-8bit (ORCPT + 99 others); Fri, 26 Jun 2020 10:39:46 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:41619 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725792AbgFZOjq (ORCPT ); Fri, 26 Jun 2020 10:39:46 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MHoZS-1ja2Sc3t1q-00Ex1k for ; Fri, 26 Jun 2020 16:39:45 +0200 Received: by mail-qt1-f180.google.com with SMTP id u12so7582807qth.12 for ; Fri, 26 Jun 2020 07:39:44 -0700 (PDT) X-Gm-Message-State: AOAM53190+Q2T/uvyQutMMNCq9iEf/WkY+gHY4O/Cp850Ec+ef4svr0U Uxi8kb4NpgBADXBF5UC1cpztTQ02/h19sxiJ2rI= X-Received: by 2002:ac8:4ccb:: with SMTP id l11mr3062402qtv.18.1593182383879; Fri, 26 Jun 2020 07:39:43 -0700 (PDT) MIME-Version: 1.0 References: <20200626130525.389469-1-lee.jones@linaro.org> <20200626130525.389469-8-lee.jones@linaro.org> In-Reply-To: <20200626130525.389469-8-lee.jones@linaro.org> From: Arnd Bergmann Date: Fri, 26 Jun 2020 16:39:27 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 07/10] misc: mic: vop: vop_main: Remove set but unused variable 'ret' To: Lee Jones Cc: gregkh , Linux ARM , "linux-kernel@vger.kernel.org" , Sudeep Dutt , Ashutosh Dixit , Christian Borntraeger Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K1:Sl59jVMntcv6rENXUiPFJhr8KBF14wfYMnXSOVToQBCssqMs2Vh Zbia7kduQnqeYwmMyNqQPfNf8KUe+8XhAowDr/GNmOmblffTQJVx8cf14MuPqa9wwFTayfi vsLc37jI3tYBmK7f1b982Fl3cIZpzAYfCEIeRtJpH26oT1bIgpCWtDFHnE+dxzSWELg2LOr M5/tFUbBTzzddT/cFZsNg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:TkRr0fZgNoA=:drKgHdLvRvM6OBccjDnT7M 0ETlPMyQC6g2ukckpC8sMGjDJOUYHK82nWgbC1+q9uRZpkUCFLjrDR0TnDKV8teBHIj3tOXst tgKYTm/Dr6x7AzuI/LcrirKiz9Cr11D5+/iQA6mnPOj1UgUSWsNbKWWFz2DtYN2/jz50WZTu+ 3n3muWehSAbRMXZLdnNYlBle/qNtLzNJpszsZXibyzKJsZWtbfCw9zTzoDetl8iLc6QYn80E0 6v6tNUml66XVUBbhWGxntctIr8Lxs/ZS3NtjnBu4imOA2HGeezWaSv+uktwwD7yRl/c07vdqQ qDgOv0fDUwaiPgFn4TXN2hOfFlFRTD6umdlLsVt0rpJgtvL2a+iSPP1sM9A+uSbgxI2r0dmiw w/mlMMc9MhgiV9/YEXUooN5aJNScdjOM55kUsWBbLHQQWjcewh0fm1O4rW+ySYmSZunczrGeU mErK94NEC1iPZn5kZgyw9bc0b4tIbbwgY7+Vn0oratCTfaaV2uZJAS97Xor5Om5K6+F6lFOf3 3p+pIXNG/iRf1BdOVS79VzYAzbT2sgFETebP/+uicwfG/1WKaH7Pg3UngA2mm9WtJeA2TusMi k++rIE4rCrFHqP43rIDAiXKFbOfW6dtS2Eke7BgDtCE0/PjXdAPBpsNz5UmhPq+wzm5LaLRkI c/wfjaPD3ZI9rzZz2MheHnueWxDEMF+O3Gcw9FvDOt6hJwGy9d3noYiGj7xc0wPeWQS+wsRkS mZOA2s/gvgDvpUtyDzqRyImc6uU+1blc8bw4kDYsHmnGlCASXeDxEaqUNdON0vwjCJGfgQcWO aNSiPxNg2g5hnQmHhd1hURbSbvYPfGkVw4hgWQZxq8XZ5ce4e1flEmIDURe/hJaCeWi66AhZM 2dYG9fyBnaU/uh4CnYRWKYzPnNoPn29+SxVRDy5PQRLddJq7n2R19bDkyfUQqsjZRMwJKKICI QTD5SqWnYvTaVxd4PE/zYa7fc9R60PRirOKteA74sbVP2zZSmeZVA Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 26, 2020 at 3:05 PM Lee Jones wrote: > > Hasn't been checked since its conception 2 years ago. > > Squashes W=1 warning: > > drivers/misc/mic/vop/vop_main.c: In function ‘_vop_scan_devices’: > drivers/misc/mic/vop/vop_main.c:617:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] > 617 | int ret; > | ^~~ > > Cc: Sudeep Dutt > Cc: Ashutosh Dixit > Cc: Christian Borntraeger > Signed-off-by: Lee Jones This is a correct change, but I'd take it one step further and make the _vop_remove_device() function return 'void' if you don't mind respinning the patch. Either way Acked-by: Arnd Bergmann