[dm-devel] drivers/md/dm-mpath.c:478: suspicious code ?

Mike Snitzer snitzer at redhat.com
Fri Jan 6 20:08:55 UTC 2017


On Fri, Jan 06 2017 at 12:52pm -0500,
David Binderman <dcb314 at hotmail.com> 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.




More information about the dm-devel mailing list