Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp343560pxb; Thu, 27 Jan 2022 23:49:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJw022c66KLMGWZPIPAkvRPeV3j2pmN2qwlrZWl6xvsk6OhRtv+IVrkwk6OzTVwjRye4FBhb X-Received: by 2002:a17:902:e88c:: with SMTP id w12mr6595069plg.109.1643356179655; Thu, 27 Jan 2022 23:49:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643356179; cv=none; d=google.com; s=arc-20160816; b=wrZSDsKmNecwLlqyfFcVampbu/3dH4RiPYJJBpeKTGOXirjLg/5HmyZ/W4Gm4paaEu +iFiUPC77XxidFX34JsX95mQ9+znwd3EYRSWA5msgp1wLPBxCat+Ypz1FNXdme5qsa23 u87jh0695+A+t2FfHpfdk5c3P198/rOpb4Yu2KrB0Z5oIHxbF9fBM14QXZvf0laYHyWx 52yaNsx19AWwO0e3LxXfp+dNDBq3ZpwrStYMJih1KGxftt5JXauVlwlYPPO7SvwIraF9 n9ByxPKjSXrwDnBrlnu6YpujLKxMMHNVEygxEB9YPBpQcKhnOcOqc7uJn7k7VW6/5uXu IV2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Hl5Rk2h8NJCWW0VFl+C3irZs+qSV5wYi8KmhJScU8tk=; b=sqjPLUoHPYqX2HKE8fSi7BSKs4TZAcupVVygj0CZyz89G5Io3yXdXh9+IRZ58zbcmW Sao5wN8KYVza9+lW6zU36JPyQW+voeBKfgyWhbu+PuxOcGoSrqz2JfMBMdHG2BfIL5AY TgHvf4BE7Tzu6j8/1x2ThzPoU3kSVDk4PNI48Nn8HMKyErkqwgKXTqaOEkBQr8FF56qW E7+Bj0K0slu9x0jVThVA29kNJynqZuamomzdcIHzXT+QoiFWtsu57W9RNe4MuWHNv069 Laj4ZE9rtLRPVJgkBnNmKgRNARc492SX9x9WDdg4W0qvQa+yon1NibJoyKJNaN2XUK9b DYlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c8lMEUYM; 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 l1si5414484plg.135.2022.01.27.23.49.28; Thu, 27 Jan 2022 23:49:39 -0800 (PST) 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=20210112 header.b=c8lMEUYM; 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 S237464AbiA0PZz (ORCPT + 99 others); Thu, 27 Jan 2022 10:25:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237456AbiA0PZx (ORCPT ); Thu, 27 Jan 2022 10:25:53 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0542FC061714 for ; Thu, 27 Jan 2022 07:25:53 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id c9so2743251plg.11 for ; Thu, 27 Jan 2022 07:25:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Hl5Rk2h8NJCWW0VFl+C3irZs+qSV5wYi8KmhJScU8tk=; b=c8lMEUYM+dRiUYpbdqKO1Q//jt0JNcNlD2yPeDJIaH9uQkBAuzR7Bmz0kXdTDpkoCN ArvbZCD2lAsJBPvTHIF6OSUydkSW+gItlLd7exlgij1vLS+DDgZqXH8sbHdHDPqoESvC kA7/LIDJsBOaPHWyNLvFHlgZngDu4eJqXvGBQhp9vdAwLeqChxIwa8JyBMNXwEyXSOAK +3guYmwWsxTtGt277nSzcYejLHWhcDmQv1UNqDFcXNLmMa+rhQtwLEnts4fNGYdOZChb Ir9lhQOpEfGvcQ31RLDi0eocjB5WXhtnKOcpuh0DpWWJeDSf/lRSNOXWxYyFQopB+CU6 gF0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Hl5Rk2h8NJCWW0VFl+C3irZs+qSV5wYi8KmhJScU8tk=; b=bKJTYaB3H0mkKH97M9PUE1mFCBYq+qUnmuPRfB8DssChSgQtfrBoJBhT+09Ld8xOl9 fPYfuvNKDjRhR9okivP6pUgyPM0zroN3yxgddOlA+Ao8fqzOdy/o7dP/I0xurqyjrCN2 1U5cssf33MD98RUKHPv6crm7TOdgCsp64CPsgiaaGtITSN58lVk6SyIJ4AR3wDmQGgBE r+semXY1T7FOHE2Lia2lqk4JDk/gC2XQ09v1wx6zJ3pxh+qbabnzrFZAO9CzY+dp5YH8 xOvLW4hqqXpcCbMblkhiTO0O5zbihjo3fElvfO2BVWYt+Q6Jh7I5Uy5AHxZJpUExf7aP 9BjA== X-Gm-Message-State: AOAM533EUjE7WuFG8SCQhYRsNQhc9UO+8A39vhdZ8lHLXt1HjNURI+75 sWJETx7kUcDPjwmXa2B/+RJCUj3yQxXOBgN7 X-Received: by 2002:a17:90a:2e87:: with SMTP id r7mr4683596pjd.61.1643297151307; Thu, 27 Jan 2022 07:25:51 -0800 (PST) Received: from nlap2 ([171.78.146.184]) by smtp.gmail.com with ESMTPSA id l2sm6073915pfc.183.2022.01.27.07.25.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 07:25:50 -0800 (PST) Date: Thu, 27 Jan 2022 20:55:43 +0530 From: Abdun Nihaal To: Greg KH Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, straube.linux@gmail.com, martin@kaiser.cx, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] staging: r8188eu: remove unneeded ret variables Message-ID: <20220127152543.ttvp7gj5bzpuvr3p@nlap2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Greg, On Tue, Jan 25, 2022 at 04:10:57PM +0100, Greg KH wrote: > Many, if not most, of these functions should either be having their > return value checked, or be void functions as no one checks their return > value and they can not fail. Please split this up and look at each > function to determine which is is and how to fix it up properly. Just > returning 0 all the time is not the correct thing to do all the time. > > One example would be rtw_p2p_get_status() It can not fail, so why does > it return anything? Thanks for reviewing the patches. I had split the changes in a way that the first patch removes the unneeded return variables and the second patch converts the functions (changed by the first patch) whose return values are not used, to return void. But yes, I now think, it is better to just convert the functions whose return values are not used, directly to return void instead of first removing the unneeded return variable and then converting to return void. I'll resend this as a single patch. Thanks, Abdun Nihaal