FAT: initialize all fields in cur_part_info, simplify init
authorStephen Warren <swarren@nvidia.com>
Wed, 17 Oct 2012 06:44:58 +0000 (06:44 +0000)
committerTom Rini <trini@ti.com>
Thu, 25 Oct 2012 19:07:45 +0000 (12:07 -0700)
commita1687b858e5670683199f6923b32aec0ea82ba19
tree46eee4de48520fbd49a6d7e6b7a558e1671f64d4
parent461f86e69650ae3c449ecb3ead607ee35277d385
FAT: initialize all fields in cur_part_info, simplify init

cur_part_info.{name,type} are strings. So, we don't need to memset()
the entire thing, just put the NULL-termination in the first byte.

Add missing initialization of the bootable and uuid fields.

None of these fields are actually used by fat.c. However, since it
stores the entire disk_partition_t, we should make sure that all fields
are valid.

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