Re: drivers/md/dm-mpath.c:478: suspicious code ?
From: Mike Snitzer
Date: Fri Jan 06 2017 - 15:09:09 EST
On Fri, Jan 06 2017 at 12:52pm -0500,
David Binderman <dcb314@xxxxxxxxxxx> 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.