diff --git a/src/add-ons/kernel/file_systems/bfs/Inode.cpp b/src/add-ons/kernel/file_systems/bfs/Inode.cpp index d9232d394b..8a0784696b 100644 --- a/src/add-ons/kernel/file_systems/bfs/Inode.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Inode.cpp @@ -499,7 +499,7 @@ Inode::AddSmallData(Transaction &transaction, NodeGetter &nodeGetter, const char { bfs_inode *node = nodeGetter.WritableNode(); - if (node == NULL || name == NULL || data == NULL || type == 0) + if (node == NULL || name == NULL || data == NULL) return B_BAD_VALUE; // reject any requests that can't fit into the small_data section