[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YmA0vHtvNmv9PNi9@kroah.com>
Date: Wed, 20 Apr 2022 18:28:44 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Xiaomeng Tong <xiam0nd.tong@...il.com>
Cc: vaibhav.sr@...il.com, dan.carpenter@...cle.com,
mgreer@...malcreek.com, johan@...nel.org, elder@...nel.org,
greybus-dev@...ts.linaro.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] greybus: audio_codec: initialize data to silence
static checker warnings
On Thu, Apr 14, 2022 at 04:42:19PM +0800, Xiaomeng Tong wrote:
> These three declares are here:
> struct gbaudio_data_connection *data;
>
> Since all three of these functions check for if the codec->module_list is
> empty at the start of the function so these are not real bugs to bypass
> 'if (!data) {'. To avoid static checker warnings like Smatch, initialize
> the data with NULL.
We do not work around broken tools, we ask that the tools be fixed.
thanks,
greg k-h
Powered by blists - more mailing lists