[Yaffs] duplicate code

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Johann Kok \(JP\)
Date:  
To: yaffs
Subject: [Yaffs] duplicate code

In the function yaffsfs_DoUnlink() I found the following which seems
to me like duplicate code, but it won't break anything:

else if(isDirectory && obj->variantType !=
YAFFS_OBJECT_TYPE_DIRECTORY)
{
    yaffsfs_SetError(-YAFFS_ENOTDIR, YAFFS_FILE, __LINE__);
}
else if(isDirectory && obj->variantType !=
YAFFS_OBJECT_TYPE_DIRECTORY)
{
    yaffsfs_SetError(-YAFFS_ENOTDIR, YAFFS_FILE, __LINE__);
}


regards
Johann Kok

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~