Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp56143lfv; Tue, 12 Apr 2022 17:06:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsCQfTAmu4zVNeId7XhvWBB79ihrN/F2OTEAcme/cGP3zI3iDXX3Mgun82u9NsUlkfMhyU X-Received: by 2002:a17:902:ecca:b0:154:5393:aa81 with SMTP id a10-20020a170902ecca00b001545393aa81mr40192052plh.148.1649808396295; Tue, 12 Apr 2022 17:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649808396; cv=none; d=google.com; s=arc-20160816; b=xV3pRmIzXV1oZGSHxKoojCUqp3Xbc5f+G8AexOjmBtv/p3FKRB+6ifgzpOAxp/iVrm ELYZBLoA1nkuLYv5QZp4ATYPYHTSC+kWkI1+JkbQ5YU7SSfFCMUKlaP3yOzzgDYsCicz o8/xn4uRBNQTrnAOpIVG0ESxk/cpThpU4SmBju/+XjsIQG5fOhrOzNc/kI9ReF7msKuQ YlBllvKkHvFLwNsODvU8ImL1cyfd+hIk13AZdUGu+1L67IscoDgBN45GVSFRfanlueJQ mD5ZB1idKE2+VbL+W81gts4fmD0kzLVh43Y9YcNRdvCzeLCVQ1hKAKlyfS5SEFPmu4Qh lWpg== 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=mimD/qtnByUgFcn0cB8f/8cZYicL+2+zJ6czmpHJvo8=; b=HP/nSrSOnKb2hh6HxpMaJXDsJU2lYCyzercUkLVWdHDv424GqP1qjji7h2/FlKzDj7 Ms7x4CHRGQZRRIpXpFExS0mzUt82tI1H0M7ZF1diCrQyodSVPKEov03TpK8YvbZp4imf FlEkBq6SCnVDR3UG5G08/mqisIo4X3DOjLzcjSImO9bUh4Mxxa8Ee5eapJKfJtIpCfXr OC+WWNSeN7Gactv14ukFVZTErhMdYMHPkAgcGi9pj+ZlU+wkPBeolvf0DqkFwkjDUUDZ ozoyd2L1hcLPqIM+bY6LTdiW56XPe3gfyst2IFX3AG3luj44a41BjbTvFY3+j2zHx/Au ATkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dN9a2qER; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s20-20020a63ff54000000b0039d8f7b8a04si3876831pgk.669.2022.04.12.17.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 17:06:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dN9a2qER; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BEF8C21FF7C; Tue, 12 Apr 2022 15:03:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232394AbiDLUJA (ORCPT + 99 others); Tue, 12 Apr 2022 16:09:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230298AbiDLUIA (ORCPT ); Tue, 12 Apr 2022 16:08:00 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F98E4BBBC for ; Tue, 12 Apr 2022 13:02:26 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id c1so3319712qkf.13 for ; Tue, 12 Apr 2022 13:02:26 -0700 (PDT) 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=mimD/qtnByUgFcn0cB8f/8cZYicL+2+zJ6czmpHJvo8=; b=dN9a2qERqiJodagN+p0JnNAnJvIgdnzwuskkMdZQEoyL0RKjcsg4pduh6bJ+vxWXmL 4YYy4nxhiPsFu+iA6AY1DHtyaK2SDu/KflTieqjkOZhwPDORcpVizXPeN8YsEWWqiYSI 6cgIfpbtNTNZ0yBZujSg+Jd3ErwoV1Y14JXtrLp5TG+AVp5+hyHfo/q29i6H6HiuTM6w 4X0uQ24bc2K28beKap8u6Z17KguGMhvNMteYzpOgnoXWkAeptXGj/U7FM4AuihCb6VOL qNrKbE2H5DcecADJUweUumwm8RTD8CRLzxRycQgDKMrJa6EOOi2pGYLy1raVFOlu69PN Lizw== 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=mimD/qtnByUgFcn0cB8f/8cZYicL+2+zJ6czmpHJvo8=; b=w21/y1tccqRqPazVtDR6efMdhFTNrWNi1ToefZjLRrZ94bq+eY/vKLcc1+JYm08vaU 9lEQ/eJ2GXTjsdLeh61lrKPfybaSPFVZTUNCE0s6CxutAS7YBD6QD9gAyf4AuZ9ARxm4 AUgP72lPiAjRhjB8xsw/6F/SVn4vLvHwNc+sniwjBqOj+8uIGBMjFl8NYZLxsVM0RUQV VRUELLX+ieKMRzGhSKDmHixNI+d7NQL5Bs//YbfMQQtdcbCZ7uVw02t9DKeGl4dx6Als N9vx5oFBDSeY4IfldNIh8e8o+9QyWfxXo8Cx2XBBXngMVxoRtJsY+O+BiirWVwXmvBAh AJLg== X-Gm-Message-State: AOAM530bcpI/GoolIGvE/dtBd/e0RPNduZzP5Jmq90vxmuh9gqXw8XND h6azrldg2CjtX0nUrH+0xAg= X-Received: by 2002:a05:620a:4445:b0:67e:aaab:837e with SMTP id w5-20020a05620a444500b0067eaaab837emr4191436qkp.403.1649793745572; Tue, 12 Apr 2022 13:02:25 -0700 (PDT) Received: from jaehee-ThinkPad-X1-Extreme ([4.34.18.218]) by smtp.gmail.com with ESMTPSA id d5-20020a05620a166500b0069c02f6f056sm6253589qko.19.2022.04.12.13.02.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 13:02:24 -0700 (PDT) Date: Tue, 12 Apr 2022 16:02:20 -0400 From: Jaehee Park To: Julia Lawall Cc: johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH 2/2] staging: greybus: remove return in an empty void function Message-ID: <20220412200220.GA2963810@jaehee-ThinkPad-X1-Extreme> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 12, 2022 at 09:04:08AM +0200, Julia Lawall wrote: > > > On Mon, 11 Apr 2022, Jaehee Park wrote: > > > Issue found by checkpatch: > > WARNING: void function return statements are not generally useful > > Even for a simple change, it wouldbe better to follow the model that the > subject line should concisely orient the reader (eg "remove unneeded > return") and the log message should give a more complete description. > Simply repeating what checkpatch tells you is rarely a good idea. It says > what the problem is in a general way, whereas you should be explaining the > reasoning behind your fix in a specific case. Here you could say that an > empty function with void return type does not need an explicit return, and > that the problem was detected with checkpatch. > > julia > Thank you for your edits. I've submitted version 2 of the patchset just now. > > > > Signed-off-by: Jaehee Park > > --- > > drivers/staging/greybus/audio_codec.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c > > index 0f50d1e51e2c..3e3a16568def 100644 > > --- a/drivers/staging/greybus/audio_codec.c > > +++ b/drivers/staging/greybus/audio_codec.c > > @@ -1032,7 +1032,6 @@ static int gbcodec_probe(struct snd_soc_component *comp) > > static void gbcodec_remove(struct snd_soc_component *comp) > > { > > /* Empty function for now */ > > - return; > > } > > > > static int gbcodec_write(struct snd_soc_component *comp, unsigned int reg, > > -- > > 2.25.1 > > > > > >