Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: [PATCH] 6lowpan: fix error checking code From: Marcel Holtmann In-Reply-To: <1456302733-7053-1-git-send-email-a.hajda@samsung.com> Date: Wed, 24 Feb 2016 07:16:48 -0800 Cc: Alexander Aring , Jukka Rissanen , linux-wpan@vger.kernel.org, Bartlomiej Zolnierkiewicz , Marek Szyprowski , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: References: <1456302733-7053-1-git-send-email-a.hajda@samsung.com> To: Andrzej Hajda Sender: linux-wpan-owner@vger.kernel.org List-ID: Hi Alex, > Bool variable 'fail' is always non-negative, it indicates an error if it > is true. > > The problem has been detected using coccinelle script > scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci > > Signed-off-by: Andrzej Hajda > --- > net/6lowpan/iphc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel