Commit 37772f91 authored by Chaitanya Kulkarni's avatar Chaitanya Kulkarni Committed by Thomas Bogendoerfer

n64: cosmetics changes

Make the variable declaration ascending order and initialize the
variables at the time of declaration when possible.
Signed-off-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: default avatarLauri Kasanen <cand@gmx.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 82a0c13a
......@@ -88,10 +88,8 @@ static bool n64cart_do_bvec(struct device *dev, struct bio_vec *bv, u32 pos)
static blk_qc_t n64cart_submit_bio(struct bio *bio)
{
struct bio_vec bvec;
u32 pos;
struct bvec_iter iter;
pos = bio->bi_iter.bi_sector << SECTOR_SHIFT;
u32 pos = bio->bi_iter.bi_sector << SECTOR_SHIFT;
bio_for_each_segment(bvec, bio, iter) {
if (!n64cart_do_bvec(dev, &bvec, pos))
......@@ -119,8 +117,8 @@ static const struct block_device_operations n64cart_fops = {
static int __init n64cart_probe(struct platform_device *pdev)
{
int err;
struct request_queue *queue;
struct gendisk *disk;
struct request_queue *queue;
if (!start || !size) {
pr_err("start or size not specified\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment