all: fix braces

This commit is contained in:
Thomas Schoebel-Theuer 2015-12-31 10:41:52 +01:00
parent d1c5f15ee1
commit b491f4f816
3 changed files with 4 additions and 8 deletions

View File

@ -244,9 +244,8 @@ int generic_register_brick_type(const struct generic_brick_type *new_type)
found = i; found = i;
continue; continue;
} }
if (!strcmp(brick_types[i]->type_name, new_type->type_name)) { if (!strcmp(brick_types[i]->type_name, new_type->type_name))
return 0; return 0;
}
} }
if (found < 0) { if (found < 0) {
if (nr_brick_types >= MAX_BRICK_TYPES) { if (nr_brick_types >= MAX_BRICK_TYPES) {

View File

@ -340,13 +340,11 @@ void _bio_io_io(struct bio_output *output, struct aio_object *aio, bool cork)
bio_get(bio); bio_get(bio);
rw = aio->io_rw & 1; rw = aio->io_rw & 1;
if (brick->do_noidle && !cork) { if (brick->do_noidle && !cork)
rw |= REQ_NOIDLE; rw |= REQ_NOIDLE;
}
if (!aio->io_skip_sync) { if (!aio->io_skip_sync) {
if (brick->do_sync) { if (brick->do_sync)
rw |= REQ_SYNC; rw |= REQ_SYNC;
}
} }
aio_a->start_stamp = cpu_clock(raw_smp_processor_id()); aio_a->start_stamp = cpu_clock(raw_smp_processor_id());

View File

@ -369,9 +369,8 @@ blk_qc_t if_make_request(struct request_queue *q, struct bio *bio)
if (tmp_a->orig_page != page || tmp_aio->io_rw != rw || tmp_a->bio_count >= MAX_BIO || tmp_a->current_len + bv_len > tmp_a->max_len) if (tmp_a->orig_page != page || tmp_aio->io_rw != rw || tmp_a->bio_count >= MAX_BIO || tmp_a->current_len + bv_len > tmp_a->max_len)
continue; continue;
if (tmp_aio->io_data + tmp_a->current_len == data) { if (tmp_aio->io_data + tmp_a->current_len == data)
goto merge_end; goto merge_end;
}
continue; continue;
merge_end: merge_end: