* CID 1044: Add more explicit NULL check before dereferencing in TRACE statement.

* Whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27470 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2008-09-13 00:44:12 +00:00
parent 4e9bf24dd5
commit bdff2c8222
@@ -1433,15 +1433,17 @@ ep_get_supported_child_operations(partition_data* partition,
bool bool
ep_is_sub_system_for(partition_data *partition) ep_is_sub_system_for(partition_data *partition)
{ {
if (partition == NULL)
return false;
TRACE(("intel: ep_is_sub_system_for(%ld: %lld, %lld, %ld, %s)\n", TRACE(("intel: ep_is_sub_system_for(%ld: %lld, %lld, %ld, %s)\n",
partition->id, partition->offset, partition->size, partition->id, partition->offset, partition->size,
partition->block_size, partition->content_type)); partition->block_size, partition->content_type));
// Intel Extended Partition can live in child partition of Intel Partition // Intel Extended Partition can live in child partition of Intel Partition
// Map // Map
return (partition && partition->content_type return partition->content_type
&& !strcmp(partition->content_type, kPartitionTypeIntel)); && !strcmp(partition->content_type, kPartitionTypeIntel);
} }