From: Chaitanya Kulkarni Date: Mon, 25 Jan 2021 23:32:41 +0000 (-0800) Subject: n64: cosmetics changes X-Git-Tag: accepted/tizen/unified/20230118.172025~7732^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37772f9136f442a1098d0ae1238def72f1216057;p=platform%2Fkernel%2Flinux-rpi.git n64: cosmetics changes Make the variable declaration ascending order and initialize the variables at the time of declaration when possible. Signed-off-by: Chaitanya Kulkarni Reviewed-by: Lauri Kasanen Signed-off-by: Thomas Bogendoerfer --- diff --git a/drivers/block/n64cart.c b/drivers/block/n64cart.c index 7906b5b..3bfb010 100644 --- a/drivers/block/n64cart.c +++ b/drivers/block/n64cart.c @@ -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");