diff options
author | NeilBrown <neilb@suse.de> | 2014-09-08 23:54:11 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-10-13 22:08:28 -0400 |
commit | c95e6385e8098ef549008ab29d671bf528a50043 (patch) | |
tree | 1318890ffe32072155fdb164f02d0ec123764649 /drivers/md/raid1.c | |
parent | b8e6a15a1af9b1c203002e7768e60136c4e0e5c6 (diff) |
md/raid1: process_checks doesn't use its return value.
process_checks() always returns '0', so change it to 'void'.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 019aa1840210..7c333b5a50fc 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -1947,7 +1947,7 @@ static int fix_sync_read_error(struct r1bio *r1_bio) | |||
1947 | return 1; | 1947 | return 1; |
1948 | } | 1948 | } |
1949 | 1949 | ||
1950 | static int process_checks(struct r1bio *r1_bio) | 1950 | static void process_checks(struct r1bio *r1_bio) |
1951 | { | 1951 | { |
1952 | /* We have read all readable devices. If we haven't | 1952 | /* We have read all readable devices. If we haven't |
1953 | * got the block, then there is no hope left. | 1953 | * got the block, then there is no hope left. |
@@ -2039,7 +2039,6 @@ static int process_checks(struct r1bio *r1_bio) | |||
2039 | 2039 | ||
2040 | bio_copy_data(sbio, pbio); | 2040 | bio_copy_data(sbio, pbio); |
2041 | } | 2041 | } |
2042 | return 0; | ||
2043 | } | 2042 | } |
2044 | 2043 | ||
2045 | static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio) | 2044 | static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio) |
@@ -2057,8 +2056,8 @@ static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio) | |||
2057 | return; | 2056 | return; |
2058 | 2057 | ||
2059 | if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) | 2058 | if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) |
2060 | if (process_checks(r1_bio) < 0) | 2059 | process_checks(r1_bio); |
2061 | return; | 2060 | |
2062 | /* | 2061 | /* |
2063 | * schedule writes | 2062 | * schedule writes |
2064 | */ | 2063 | */ |