udf: use bool for done
authorFabian Frederick <fabf@skynet.be>
Wed, 4 Feb 2015 17:15:04 +0000 (18:15 +0100)
committerJan Kara <jack@suse.cz>
Thu, 5 Feb 2015 15:34:22 +0000 (16:34 +0100)
variable 'done' is only used for true/false in loop.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c

index 3d35a75..f169411 100644 (file)
@@ -1599,7 +1599,7 @@ static noinline int udf_process_sequence(
        struct udf_vds_record *curr;
        struct generic_desc *gd;
        struct volDescPtr *vdp;
-       int done = 0;
+       bool done = false;
        uint32_t vdsn;
        uint16_t ident;
        long next_s = 0, next_e = 0;
@@ -1680,7 +1680,7 @@ static noinline int udf_process_sequence(
                                lastblock = next_e;
                                next_s = next_e = 0;
                        } else
-                               done = 1;
+                               done = true;
                        break;
                }
                brelse(bh);