Return-path: Received: from userp1040.oracle.com ([156.151.31.81]:28157 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753689AbdETFcp (ORCPT ); Sat, 20 May 2017 01:32:45 -0400 Date: Sat, 20 May 2017 08:29:52 +0300 From: Dan Carpenter To: Larry Finger Cc: Chaoming Li , Kalle Valo , Ping-Ke Shih , Yan-Hsuan Chuang , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] rtlwifi: btcoex: 23b 1ant: initialize bt_disabled to false Message-ID: <20170520052952.s63bwwyqmp4moplk@mwanda> (sfid-20170520_073252_111202_62A691EA) References: <20170519212539.cihnvwl7irchxoaj@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Fri, May 19, 2017 at 09:22:59PM -0500, Larry Finger wrote: > On 05/19/2017 04:25 PM, Dan Carpenter wrote: > > We only want to disable this if bt_disable_cnt is >= 2. > > > > Fixes: f66509e3d7c2 ("rtlwifi: btcoex: Remove 23b 1ant configuration parameter") > > Signed-off-by: Dan Carpenter > > --- > > Btw, that patch also introduced Sparse warning but I don't know how to > > address it. > > > > drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c:1432:63: warning: odd constant _Bool cast (2 becomes 1) > > I agree that bt_disabled needs to be initialized. Actually, I would have > expected an unitialized variable warning out of gcc. > > Earlier today, I finished applying the rest of the btcoex patches from > Realtek and now have a clean Sparse run. I never saw that message, and I > certainly do not understand it either. > > Larry I had another look and I figured it out. I'll send a patch. regards, dan carpenter