atomic_set(&rbio->stripes_pending, bio_list_size(&bio_list));
        BUG_ON(atomic_read(&rbio->stripes_pending) == 0);
 
-       while (1) {
-               bio = bio_list_pop(&bio_list);
-               if (!bio)
-                       break;
-
+       while ((bio = bio_list_pop(&bio_list))) {
                bio->bi_private = rbio;
                bio->bi_end_io = raid_write_end_io;
                bio->bi_opf = REQ_OP_WRITE;
         * not to touch it after that
         */
        atomic_set(&rbio->stripes_pending, bios_to_read);
-       while (1) {
-               bio = bio_list_pop(&bio_list);
-               if (!bio)
-                       break;
-
+       while ((bio = bio_list_pop(&bio_list))) {
                bio->bi_private = rbio;
                bio->bi_end_io = raid_rmw_end_io;
                bio->bi_opf = REQ_OP_READ;
         * not to touch it after that
         */
        atomic_set(&rbio->stripes_pending, bios_to_read);
-       while (1) {
-               bio = bio_list_pop(&bio_list);
-               if (!bio)
-                       break;
-
+       while ((bio = bio_list_pop(&bio_list))) {
                bio->bi_private = rbio;
                bio->bi_end_io = raid_recover_end_io;
                bio->bi_opf = REQ_OP_READ;
 
        atomic_set(&rbio->stripes_pending, nr_data);
 
-       while (1) {
-               bio = bio_list_pop(&bio_list);
-               if (!bio)
-                       break;
-
+       while ((bio = bio_list_pop(&bio_list))) {
                bio->bi_private = rbio;
                bio->bi_end_io = raid_write_end_io;
                bio->bi_opf = REQ_OP_WRITE;
         * not to touch it after that
         */
        atomic_set(&rbio->stripes_pending, bios_to_read);
-       while (1) {
-               bio = bio_list_pop(&bio_list);
-               if (!bio)
-                       break;
-
+       while ((bio = bio_list_pop(&bio_list))) {
                bio->bi_private = rbio;
                bio->bi_end_io = raid56_parity_scrub_end_io;
                bio->bi_opf = REQ_OP_READ;