kernel/fs: Fix some minor coding style issues.
This commit is contained in:
@@ -6029,13 +6029,13 @@ dir_open_entry_ref(dev_t mountID, ino_t parentID, const char* name, bool kernel)
|
|||||||
{
|
{
|
||||||
FUNCTION(("dir_open_entry_ref()\n"));
|
FUNCTION(("dir_open_entry_ref()\n"));
|
||||||
|
|
||||||
if (name && name[0] == '\0')
|
if (name != NULL && name[0] == '\0')
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
// get the vnode matching the entry_ref/node_ref
|
// get the vnode matching the entry_ref/node_ref
|
||||||
VnodePutter vnode;
|
VnodePutter vnode;
|
||||||
status_t status;
|
status_t status;
|
||||||
if (name) {
|
if (name != NULL) {
|
||||||
status = entry_ref_to_vnode(mountID, parentID, name, true, kernel,
|
status = entry_ref_to_vnode(mountID, parentID, name, true, kernel,
|
||||||
vnode);
|
vnode);
|
||||||
} else {
|
} else {
|
||||||
@@ -7482,7 +7482,7 @@ fs_mount(char* path, const char* device, const char* fsName, uint32 flags,
|
|||||||
KPath normalizedDevice;
|
KPath normalizedDevice;
|
||||||
bool newlyCreatedFileDevice = false;
|
bool newlyCreatedFileDevice = false;
|
||||||
|
|
||||||
if (!(flags & B_MOUNT_VIRTUAL_DEVICE) && device != NULL) {
|
if ((flags & B_MOUNT_VIRTUAL_DEVICE) == 0 && device != NULL) {
|
||||||
// normalize the device path
|
// normalize the device path
|
||||||
status = normalizedDevice.SetTo(device, true);
|
status = normalizedDevice.SetTo(device, true);
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user