FAT: remove cur_part_nr
authorStephen Warren <swarren@nvidia.com>
Wed, 17 Oct 2012 06:44:57 +0000 (06:44 +0000)
committerTom Rini <trini@ti.com>
Thu, 25 Oct 2012 19:07:41 +0000 (12:07 -0700)
commit461f86e69650ae3c449ecb3ead607ee35277d385
tree88c19b679b2f1ff0a3c99f65f4992882476dcb5d
parentd07e7f9b3d62a17f60f40638e942406b03d977c3
FAT: remove cur_part_nr

A future patch will implement the more standard filesystem API
fat_set_blk_dev(). This API has no way to know which partition number
the partition represents. Equally, future DM rework will make the
concept of partition number harder to pass around.

So, simply remove cur_part_nr from fat.c; its only use is in a
diagnostic printf, and the context where it's printed should make it
obvious which partition is referred to anyway (since the partition ID
would come from the user command-line that caused it).

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
fs/fat/fat.c