diff options
author | Brian C. Lane <bcl@redhat.com> | 2011-03-02 14:36:33 -0800 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-03-05 22:05:56 +0100 |
commit | 81c82ad7d495c983abe1ccb8bf983d9949854f80 (patch) | |
tree | 3e075459a53ded45a7632d8324a5dafb29acf47e /libparted/fs/fat/bootsector.c | |
parent | 244b1b25a12198efb076e8c65be77b5750776583 (diff) | |
download | parted-81c82ad7d495c983abe1ccb8bf983d9949854f80.tar.gz |
Remove PED_ASSERT action argument
The action argument was a leftover from when the PED_ASSERT macro was
last changed. This removes that argument from the macro and from all
occurrences of it.
Diffstat (limited to 'libparted/fs/fat/bootsector.c')
-rw-r--r-- | libparted/fs/fat/bootsector.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libparted/fs/fat/bootsector.c b/libparted/fs/fat/bootsector.c index 3c87bde..a5d69c3 100644 --- a/libparted/fs/fat/bootsector.c +++ b/libparted/fs/fat/bootsector.c @@ -38,8 +38,8 @@ int fat_boot_sector_read (FatBootSector* bs, const PedGeometry *geom) { - PED_ASSERT (bs != NULL, return 0); - PED_ASSERT (geom != NULL, return 0); + PED_ASSERT (bs != NULL); + PED_ASSERT (geom != NULL); if (!ped_geometry_read (geom, bs, 0, 1)) return 0; @@ -130,7 +130,7 @@ fat_boot_sector_analyse (FatBootSector* bs, PedFileSystem* fs) FatSpecific* fs_info = FAT_SPECIFIC (fs); int fat_entry_size; - PED_ASSERT (bs != NULL, return 0); + PED_ASSERT (bs != NULL); if (PED_LE16_TO_CPU (bs->sector_size) != 512) { if (ped_exception_throw ( @@ -290,7 +290,7 @@ fat_boot_sector_analyse (FatBootSector* bs, PedFileSystem* fs) int fat_boot_sector_set_boot_code (FatBootSector* bs) { - PED_ASSERT (bs != NULL, return 0); + PED_ASSERT (bs != NULL); memset (bs, 0, 512); memcpy (bs->boot_jump, FAT_BOOT_JUMP, 3); @@ -303,7 +303,7 @@ fat_boot_sector_generate (FatBootSector* bs, const PedFileSystem* fs) { FatSpecific* fs_info = FAT_SPECIFIC (fs); - PED_ASSERT (bs != NULL, return 0); + PED_ASSERT (bs != NULL); memcpy (bs->system_id, "MSWIN4.1", 8); bs->sector_size = PED_CPU_TO_LE16 (fs_info->logical_sector_size * 512); @@ -382,7 +382,7 @@ fat_boot_sector_write (const FatBootSector* bs, PedFileSystem* fs) { FatSpecific* fs_info = FAT_SPECIFIC (fs); - PED_ASSERT (bs != NULL, return 0); + PED_ASSERT (bs != NULL); if (!ped_geometry_write (fs->geom, bs, 0, 1)) return 0; @@ -400,7 +400,7 @@ fat_info_sector_read (FatInfoSector* is, const PedFileSystem* fs) FatSpecific* fs_info = FAT_SPECIFIC (fs); int status; - PED_ASSERT (is != NULL, return 0); + PED_ASSERT (is != NULL); if (!ped_geometry_read (fs->geom, is, fs_info->info_sector_offset, 1)) return 0; @@ -423,7 +423,7 @@ fat_info_sector_generate (FatInfoSector* is, const PedFileSystem* fs) { FatSpecific* fs_info = FAT_SPECIFIC (fs); - PED_ASSERT (is != NULL, return 0); + PED_ASSERT (is != NULL); fat_table_count_stats (fs_info->fat); @@ -443,7 +443,7 @@ fat_info_sector_write (const FatInfoSector* is, PedFileSystem *fs) { FatSpecific* fs_info = FAT_SPECIFIC (fs); - PED_ASSERT (is != NULL, return 0); + PED_ASSERT (is != NULL); if (!ped_geometry_write (fs->geom, is, fs_info->info_sector_offset, 1)) return 0; |