drivers/block/floppy.c: remove REPEAT macro
authorJoe Perches <joe@perches.com>
Wed, 10 Mar 2010 23:21:02 +0000 (15:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Mar 2010 23:52:30 +0000 (15:52 -0800)
Macros with hidden flow changes aren't nice.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/floppy.c

index 00f3910e2d53444d4d395bd7ac2383d2ad1a6f54..5d8f5510ebc5441eda836471920e5c8a350e4dc7 100644 (file)
@@ -2885,7 +2885,6 @@ static int make_raw_rw_request(void)
 
 static void redo_fd_request(void)
 {
-#define REPEAT {request_done(0); continue; }
        int drive;
        int tmp;
 
@@ -2920,7 +2919,8 @@ static void redo_fd_request(void)
                if (test_bit(current_drive, &fake_change) ||
                    test_bit(FD_DISK_CHANGED_BIT, &DRS->flags)) {
                        DPRINT("disk absent or changed during operation\n");
-                       REPEAT;
+                       request_done(0);
+                       continue;
                }
                if (!_floppy) { /* Autodetection */
                        if (!probing) {
@@ -2928,7 +2928,8 @@ static void redo_fd_request(void)
                                if (next_valid_format()) {
                                        DPRINT("no autodetectable formats\n");
                                        _floppy = NULL;
-                                       REPEAT;
+                                       request_done(0);
+                                       continue;
                                }
                        }
                        probing = 1;
@@ -2949,7 +2950,6 @@ static void redo_fd_request(void)
                debugt("queue fd request");
                return;
        }
-#undef REPEAT
 }
 
 static struct cont_t rw_cont = {