mtd: bcm47xxpart: fix parsing first block after aligned TRX
authorRafał Miłecki <rafal@milecki.pl>
Sun, 20 Nov 2016 15:09:30 +0000 (16:09 +0100)
committerJiri Slaby <jslaby@suse.cz>
Fri, 28 Apr 2017 17:30:38 +0000 (19:30 +0200)
commit68281619e3fa2cd199523bdadbe8a096683b5e14
treed21759f955bbf85219a31be99cbcf0cd6d56a728
parent45f27a17a0c14a7f80bc44c90947a8e62817eace
mtd: bcm47xxpart: fix parsing first block after aligned TRX

commit bd5d21310133921021d78995ad6346f908483124 upstream.

After parsing TRX we should skip to the first block placed behind it.
Our code was working only with TRX with length not aligned to the
blocksize. In other cases (length aligned) it was missing the block
places right after TRX.

This fixes calculation and simplifies the comment.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/mtd/bcm47xxpart.c