summaryrefslogtreecommitdiffstats
path: root/src/H5FDdirect.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2018-12-18 07:00:25 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2018-12-18 07:00:25 (GMT)
commitddf2cbad1b90004de493b372d5d2f478e82a3024 (patch)
tree4b67c95cae2d26a100246576fff1ee7bbd185fdc /src/H5FDdirect.c
parentaadebc1b7eefa1ef0954b30f109f288f79452998 (diff)
downloadhdf5-ddf2cbad1b90004de493b372d5d2f478e82a3024.zip
hdf5-ddf2cbad1b90004de493b372d5d2f478e82a3024.tar.gz
hdf5-ddf2cbad1b90004de493b372d5d2f478e82a3024.tar.bz2
Cleaned up and normalized VFD init calls.
Diffstat (limited to 'src/H5FDdirect.c')
-rw-r--r--src/H5FDdirect.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/H5FDdirect.c b/src/H5FDdirect.c
index 906ec28..4476654 100644
--- a/src/H5FDdirect.c
+++ b/src/H5FDdirect.c
@@ -206,30 +206,27 @@ done:
/*-------------------------------------------------------------------------
- * Function: H5FD_direct_init
+ * Function: H5FD_direct_init
*
- * Purpose: Initialize this driver by registering the driver with the
- * library.
+ * Purpose: Initialize this driver by registering the driver with the
+ * library.
*
- * Return: Success: The driver ID for the direct driver.
- *
- * Failure: Negative.
+ * Return: Success: The driver ID for the direct driver
+ * Failure: H5I_INVALID_HID
*
* Programmer: Raymond Lu
* Wednesday, 20 September 2006
*
- * Modifications:
- *
*-------------------------------------------------------------------------
*/
hid_t
H5FD_direct_init(void)
{
- hid_t ret_value; /* Return value */
+ hid_t ret_value = H5I_INVALID_HID; /* Return value */
- FUNC_ENTER_NOAPI(FAIL)
+ FUNC_ENTER_NOAPI(H5I_INVALID_HID)
- if (H5I_VFL!=H5I_get_type(H5FD_DIRECT_g))
+ if (H5I_VFL != H5I_get_type(H5FD_DIRECT_g))
H5FD_DIRECT_g = H5FD_register(&H5FD_direct_g,sizeof(H5FD_class_t),FALSE);
/* Set return value */
@@ -237,7 +234,7 @@ H5FD_direct_init(void)
done:
FUNC_LEAVE_NOAPI(ret_value)
-}
+} /* end H5FD_direct_init() */
/*---------------------------------------------------------------------------