summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-06-29 11:24:34 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-29 19:26:21 +0200
commitcfb9e32f2ff32ef5265c1c80fe68dd1a7f03a604 (patch)
treeb5b2ea1f75a87cd7837d645faf661206785e12e4 /drivers/md
parent[PATCH] SKB leak in drivers/isdn/i4l/isdn_x25iface.c (diff)
downloadlinux-cfb9e32f2ff32ef5265c1c80fe68dd1a7f03a604.tar.xz
linux-cfb9e32f2ff32ef5265c1c80fe68dd1a7f03a604.zip
[PATCH] drivers/md/raid5.c: remove an unused variable
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid5.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index f920e50ea124..837ec4eb3d60 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -2827,7 +2827,6 @@ static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *ski
struct stripe_head *sh;
int pd_idx;
int raid_disks = conf->raid_disks;
- int data_disks = raid_disks - conf->max_degraded;
sector_t max_sector = mddev->size << 1;
int sync_blocks;
int still_degraded = 0;