diff options
Diffstat (limited to 'src/usr/i2c/eepromdd.C')
-rwxr-xr-x | src/usr/i2c/eepromdd.C | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/usr/i2c/eepromdd.C b/src/usr/i2c/eepromdd.C index b046d109a..f472a72f2 100755 --- a/src/usr/i2c/eepromdd.C +++ b/src/usr/i2c/eepromdd.C @@ -46,8 +46,7 @@ // ---------------------------------------------- // Globals // ---------------------------------------------- -mutex_t g_eepromMutex; -bool g_initEepromMutex = true; +mutex_t g_eepromMutex = MUTEX_INITIALIZER; // ---------------------------------------------- // Trace definitions @@ -111,12 +110,6 @@ errlHndl_t eepromPerformOp( DeviceFW::OperationType i_opType, do { - if( g_initEepromMutex ) - { - mutex_init( &g_eepromMutex ); - g_initEepromMutex = false; - } - // Read Attributes needed to complete the operation err = eepromReadAttributes( i_target, i2cInfo ); |