net: s2io: simplify logical constraint
[deliverable/linux.git] / drivers / md / dm-verity-fec.c
index 459a9f8905edb22b81205e5196910b66956eaa1f..0f0eb8a3d922a212583ba491f3899a69a2b91bd6 100644 (file)
@@ -453,9 +453,7 @@ int verity_fec_decode(struct dm_verity *v, struct dm_verity_io *io,
         */
 
        offset = block << v->data_dev_block_bits;
-
-       res = offset;
-       div64_u64(res, v->fec->rounds << v->data_dev_block_bits);
+       res = div64_u64(offset, v->fec->rounds << v->data_dev_block_bits);
 
        /*
         * The base RS block we can feed to the interleaver to find out all
This page took 0.025837 seconds and 5 git commands to generate.