Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp717987ybt; Fri, 26 Jun 2020 09:51:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR+XDg7i3orjkfnyp+iRvBHilwhVmyrBfy9tMe5N2XjDn9XbnvGn30X6ti1iHruldhJ2Bv X-Received: by 2002:a50:c44b:: with SMTP id w11mr4444541edf.317.1593190316032; Fri, 26 Jun 2020 09:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593190316; cv=none; d=google.com; s=arc-20160816; b=KqKIQi0+50FvM6PintaFKmsVisG2rEPytuo2avlZIU7ieHLlS1hwyBi6yBpoJf+TkN n0HCuD8b0wmzcghUW6MXoDLqArGWNShLGNQ8n8Ohzrqlbja7ZqWNnz1IkyDgJwbGFvhs 9om4aHqBEbDPYXVhyPOX8am/a8HLaPi66xvgkzsdnRDA5uAMtPtcba392CRleK32N+6v 2jedhiv29IOJpf6WKTi10vOorNx89IFSnTwcc70zHzJ+HDoCcZYBJfx5JygEwajdfO6X 2ER9ZMZ9cBuuA+LpHH3fw6/NY/IeoWuy1ztEoksRPgYZXOcwhjxR0nUbFszQERkwDbUo dGUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0lhWmz4gkWx6AfXZ8zpsPkE0z4DNkMEgiuxjbAaFYdo=; b=gaYAexC+WuJY7HILw6pxMQsiNcdBprh32pXb0P0RHzYYX7foxHYTbLpokuQFE3WgsW TAf2HOOZRrzGv9Cz2tSaQMTfKIE8HsTLo4nEYnRrXMuak9qeVRS5X8uYKN0ZZSMhSGbN vTGy/URsxifZUlnKAfYuumAJYvRYCohSjSTMkDpM7l2UaLY2ll+StDFzToZDipw9mObK s3UwJMk4UTZb+/l6Ogzh+2EN4RmEX9kgTGnz4/SQvteQFNogOsqg+/eoBlTcYqOCnbT5 tEJKgKrAmHwb+/n7TfrwC3ICLMUrQSfbNkvaj3HttiexDUu6VQr9k/n2Hxhg6rl9AZFD VZmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WZxTQ/+z"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v8si1988124edf.219.2020.06.26.09.51.33; Fri, 26 Jun 2020 09:51:56 -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=@linaro.org header.s=google header.b="WZxTQ/+z"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726775AbgFZP32 (ORCPT + 99 others); Fri, 26 Jun 2020 11:29:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbgFZP31 (ORCPT ); Fri, 26 Jun 2020 11:29:27 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30DC9C03E979 for ; Fri, 26 Jun 2020 08:29:27 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id b6so9882162wrs.11 for ; Fri, 26 Jun 2020 08:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=0lhWmz4gkWx6AfXZ8zpsPkE0z4DNkMEgiuxjbAaFYdo=; b=WZxTQ/+zLaRwJGkqQg3SIO+0/JJg7pHH9uxR6UMOEHq+be4kld/3Kq9L0TyY3Jln/4 0v3XnTPja08y7R4MBjRa0uvIbJO0dG7F5q2DKw72m4xRLltHtPqFvc/GrhDXPhO7VYxf HU5SMTHvX59+us2s8wjzOB0jtvpkezy5PmDIX1RB/aRv2yLlhPoyaBosXQF8mKLv03gz Va1jZv2EoDAOBfGq80e5pYOaG/lwiDeqiFYIyyWb/C0ZJfL2F35mP3l9ZjCz50/Th6HT JaTvKPeUo7Jfh9epl3o2dPBvkr9FIzd5NfufUevzn7H4VMHSBl2R5W56eEYjHyhfKldq gLbg== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=0lhWmz4gkWx6AfXZ8zpsPkE0z4DNkMEgiuxjbAaFYdo=; b=VU8X6zDzKYoU9bK0iNYWzKzkWIuX3R08KNhrlFMAIFd07jfD6qfPZ5T3qqSTdx/pCX Q2VFSS8w6k/elnVK482E6PW1gM38iu1MvxWE/cjX8WToacDjlr7kVK1ZlmIr8JNvkoxi NUIh//XP5tAK3P1WK2UFzkgn2NtofrcwdM1TjoO5DPvuzNswOOGRD0T8P2w314HVZghf zUBmkyZFYmxBLEiOzrJCWa47Tk6DMbE06PecvniYKtnSzFOIyhYqg8M2lCKK0orpsfCP VW5QXIRZiREijeQdXwz0SCmfZBQFXyyqGyks/N2dfnluJvdfIL9gl5EMaN7xjxKhbU/r U8cg== X-Gm-Message-State: AOAM533NLsg5Iks2hVSPWzPIlPSvwU26LqRZFjhZjVC24oF05oad4awJ MoHWodvo/ZSgRMQDwFX9QbzameAaZc4= X-Received: by 2002:a5d:4fce:: with SMTP id h14mr4322319wrw.199.1593185365761; Fri, 26 Jun 2020 08:29:25 -0700 (PDT) Received: from dell ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id l14sm21159461wrn.18.2020.06.26.08.29.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 08:29:25 -0700 (PDT) Date: Fri, 26 Jun 2020 16:29:23 +0100 From: Lee Jones To: Arnd Bergmann Cc: gregkh , Linux ARM , "linux-kernel@vger.kernel.org" , Sudeep Dutt , Ashutosh Dixit , Christian Borntraeger Subject: Re: [PATCH 07/10] misc: mic: vop: vop_main: Remove set but unused variable 'ret' Message-ID: <20200626152923.GB177734@dell> References: <20200626130525.389469-1-lee.jones@linaro.org> <20200626130525.389469-8-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Jun 2020, Arnd Bergmann wrote: > 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 Thanks. Do you mind if I handle your request as a subsequent patch? -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog