NTFS: Codestyle cleanup
This commit is contained in:
@@ -94,7 +94,6 @@ fs_free_dircookie(fs_volume *_vol, fs_vnode *vnode, void *_cookie)
|
||||
cache_entry *entry = cookie->cache_root;
|
||||
while (entry != NULL) {
|
||||
cache_entry *next = entry->next;
|
||||
if (entry->ent != NULL)
|
||||
free(entry->ent);
|
||||
free(entry);
|
||||
entry = next;
|
||||
@@ -254,7 +253,6 @@ fs_rewinddir(fs_volume *_vol, fs_vnode *_node, void *_cookie)
|
||||
cache_entry *entry = cookie->cache_root;
|
||||
while (entry != NULL) {
|
||||
cache_entry *next = entry->next;
|
||||
if (entry->ent != NULL)
|
||||
free(entry->ent);
|
||||
free(entry);
|
||||
entry = next;
|
||||
|
||||
@@ -81,7 +81,7 @@ int ntfs_calc_free_space(nspace *_ns)
|
||||
return -1;
|
||||
|
||||
buf = (unsigned char*)ntfs_malloc(vol->cluster_size);
|
||||
if(!buf)
|
||||
if (buf == NULL)
|
||||
goto exit;
|
||||
|
||||
while (pos < data->data_size) {
|
||||
|
||||
Reference in New Issue
Block a user