Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1806125pxb; Thu, 28 Oct 2021 10:20:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQcc8W61viDNbpBtBjoaqghuPJa/KDcDRqYREQymdEcNWCZLEpS0zSKepZppbZDaMi2GdF X-Received: by 2002:a17:902:a983:b0:141:9407:1fb3 with SMTP id bh3-20020a170902a98300b0014194071fb3mr3347375plb.35.1635441649833; Thu, 28 Oct 2021 10:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635441649; cv=none; d=google.com; s=arc-20160816; b=ubzqCngZqzONpd+c3AWRKnKDiKCREu5kk2Qi9BU/S0noMzQwGaljDEmZWepZ7HNacw vWg4wEw2Cqd7kZL4t0kSiRrgUek/N+mrSmm6MGRHZIVps/xvGeTuJmq4nMu9hWuEcn0P 63+Mp/K1CE7Wo7E12zDDowymJjYR4D2XYibWk6HELIaPDN1EaHF5S0RZLdB0RJnFBKIF gD+d1iyb0ye7rv7dM8Ca8GThajoSMG2AkSQOgQGWZ8euVtI3hd41GMErJ1PimFoEMCHP WbEaAcUHDpu/6thKb0hG3yOv8rPR9oj17IFkj9XNBctpnwG1aVvkMU0eEPskYP8xLLfm Brrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=hat62J85X62jvJyK19mkL5UpXeARlsuAMtNgM0cakMQ=; b=fjmcplCqf7AACw8kb1ixkkTyFHDL4gxrronPmO5my5UiBqqZ1Rcw40Xu8bVDQ/Auhn tbt4BriBm1Noqt5LHc1aWWc2YNFSE3+kqym6/AdNw7NrHO+j/gKzmodbso4g1euSP2vj xaOP4aGNIrlU3NPJEVCfIM5bSpZkh14/R4a7/iWkuxuIJ2KxK7YNIVnYYXnHC7fX83TE 8VasIMur7S7eHH9d4gBQpc/uzl5vIZulJ39CBi+KX483Ge7VnPVatMvrZFoFwocqe2GE Hhim6cms2nGS1ubwErDTGq13UkiWvsubuwRlfy5j3PYKHoF6Pj+swTH3xr0/hUlWP3ky whlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@fra-uas.de header.s=klopfer header.b=OrJ6bMhV; 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 x2si9747937pjp.171.2021.10.28.10.20.36; Thu, 28 Oct 2021 10:20:49 -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=fail header.i=@fra-uas.de header.s=klopfer header.b=OrJ6bMhV; 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 S230377AbhJ1RV7 (ORCPT + 99 others); Thu, 28 Oct 2021 13:21:59 -0400 Received: from klopfer.dv.fh-frankfurt.de ([194.95.81.200]:51450 "EHLO klopfer.dv.fh-frankfurt.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbhJ1RV6 (ORCPT ); Thu, 28 Oct 2021 13:21:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fra-uas.de; s=klopfer; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hat62J85X62jvJyK19mkL5UpXeARlsuAMtNgM0cakMQ=; b=OrJ6bMhVdKX1MAe3VxVbggDFq0 4Tp5eTficC9pu9CSecIgEDXEBC6tajmUKod4Dq1JZuAeg/RXmLOkO+4/s1JSKEBmje2yYfnumk52m dIap75HMWAIXGuxo+UhXi3ioTftNspnHu5i+pUJYEXLUkf/JNaw9UJVRskb/yMg7ygxVnnF2plY20 3FlGoVKJO7ls3lRHgKcWAzIVTbqO0tkqivBK6+XNDbVXUdbEWwJeHUvJt6l3q4L4rO4ZyrVvtpwbl qk7pIwYiQYSUO5IXeh3nl0UYLlUi22cgl4ztmUZyyCUQERXhbJXULdrnigiVIEEqFNPoYQFtN4O3Q RGjNk02A==; Received: from [10.5.14.51] (helo=webmail-se.frankfurt-university.de) by klopfer.dv.fh-frankfurt.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1mg93n-0007oW-Bz; Thu, 28 Oct 2021 19:19:27 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 28 Oct 2021 19:19:25 +0200 From: Senthuran Sivarajah To: Greg KH Cc: vaibhav.sr@gmail.com, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Staging: greybus: audio_codec: changed a void function to return 0 In-Reply-To: References: <20211028153808.9509-1-ssivaraj@stud.fra-uas.de> Message-ID: X-Sender: ssivaraj@stud.fra-uas.de User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Greg, I've run the checkpatch.pl script on audio_code.c: > ./scripts/checkpatch.pl --file --terse > drivers/staging/greybus/audio_codec.c and got the following warning: > drivers/staging/greybus/audio_codec.c:1032: WARNING: void function > return statements are not generally useful As Brian wrote, we can either remove the return or leave it as is, so my "changes" can be ignored. This is not a coding style issue and I should have been more clear on the commit message. I apologize for the mistake. Thank you and @Brian for taking the time to reply. Kind regards, Senthu Am 28.10.2021 18:42, schrieb Greg KH: > On Thu, Oct 28, 2021 at 05:38:08PM +0200, Senthu Sivarajah wrote: >> From: Senthuran Sivarajah >> >> Fixed a coding style issue. > > What coding style exactly? > >> >> Signed-off-by: Senthuran Sivarajah >> >> --- >> drivers/staging/greybus/audio_codec.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/staging/greybus/audio_codec.c >> b/drivers/staging/greybus/audio_codec.c >> index b589cf6b1d03..9f99862791dc 100644 >> --- a/drivers/staging/greybus/audio_codec.c >> +++ b/drivers/staging/greybus/audio_codec.c >> @@ -1028,7 +1028,7 @@ static int gbcodec_probe(struct >> snd_soc_component *comp) >> static void gbcodec_remove(struct snd_soc_component *comp) >> { >> /* Empty function for now */ >> - return; >> + return 0; > > Did you build this change? > > Exactly what tool reported a problem with this code and what was the > exact error? > > thanks, > > greg k-h