From: Fabian Frederick Date: Wed, 4 Feb 2015 17:15:04 +0000 (+0100) Subject: udf: use bool for done X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2b8f942111b1be0ae4916de6a7c60658431269da;p=linux-beck.git udf: use bool for done variable 'done' is only used for true/false in loop. Signed-off-by: Fabian Frederick Signed-off-by: Jan Kara --- diff --git a/fs/udf/super.c b/fs/udf/super.c index 3d35a754293a..f169411c4ea0 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -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);