Re: [Yaffs] duplicate code

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

Fixed in cvs.

-- CHarles

On Wednesday 15 November 2006 20:26, Johann Kok (JP) wrote:
> 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
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> yaffs mailing list
>
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs