[2.6 patch] floppy.c: remove superfluous variable initialization

From: Adrian Bunk
Date: Sun Jul 11 2004 - 18:48:40 EST



One month ago, Kam Leo <A1tmblwd@xxxxxxxxxxxx> sent this trivial patch
with the following comment:


<-- snip -->

Paul Slootman did not remove the superfluous variable
initialization which masked the floppy minor bug in
drivers/block/floppy.c. Please add the patch below
and close Bug 2770.

<-- snip -->


Since this is obviously correct, the patch rediffed against 2.6.7-mm7 is
below.


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.7-mm7-full/drivers/block/floppy.c.old 2004-07-12 01:33:30.000000000 +0200
+++ linux-2.6.7-mm7-full/drivers/block/floppy.c 2004-07-12 01:33:45.000000000 +0200
@@ -4228,7 +4228,6 @@
int err, dr;

raw_cmd = NULL;
- i = 0;

for (dr = 0; dr < N_DRIVE; dr++) {
disks[dr] = alloc_disk(1);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/