Re: [PATCH 1/1] fs/xfs/xfs_log.c: Fix comparison to bool

From: Andrew Morton
Date: Wed Apr 16 2014 - 18:16:11 EST


On Sun, 13 Apr 2014 22:09:17 +0200 Fabian Frederick <fabf@xxxxxxxxx> wrote:

> Fixing coccinelle warning

Please always quote the full error message or warning text when fixing
such things.

> --- a/fs/xfs/xfs_log.c
> +++ b/fs/xfs/xfs_log.c
> @@ -2376,7 +2376,7 @@ next_lv:
> if (lv)
> vecp = lv->lv_iovecp;
> }
> - if (record_cnt == 0 && ordered == false) {
> + if (record_cnt == 0 && !ordered) {
> if (!lv)
> return 0;

There was nothing wrong with that code. I suspect coccinelle bustage.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/