/* yaffs_get_handle Increase use of handle when reading/writing a file Also gets the file descriptor.  */
static int yaffsfs_GetHandle(int handle)
/* yaffs_get_handle Increase use of handle when reading/writing a file Also gets the file descriptor.  */
static int yaffsfs_GetHandle(int handle)
{
	struct yaffsfs_Handle *h = yaffsfs_HandleToPointer(handle);
	if (h && h->useCount > 0) {
		h->useCount++;
		return 0;
	}
	return -1;
}