From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938189AbdAFUJG (ORCPT ); Fri, 6 Jan 2017 15:09:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58838 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938130AbdAFUI4 (ORCPT ); Fri, 6 Jan 2017 15:08:56 -0500 Date: Fri, 6 Jan 2017 15:08:55 -0500 From: Mike Snitzer To: David Binderman Cc: "agk@redhat.com" , "dm-devel@redhat.com" , "shli@kernel.org" , "linux-raid@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: drivers/md/dm-mpath.c:478: suspicious code ? Message-ID: <20170106200855.GA15627@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 06 Jan 2017 20:08:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 06 2017 at 12:52pm -0500, David Binderman wrote: > Hello there, > > drivers/md/dm-mpath.c:478:19: warning: decrement of a boolean expression [-Wbool-operation] > > Source code is > > } while (bypassed--); > > Suggest code rework. Maybe a boolean / int type mixup ? Yeah, should be cleaned up. Thanks for reporting this.