初期化時にはどんな状態でも"リセット”は行うように戻した(復旧処理は行わない)

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@150 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
kubodera_yuichi 2010-01-07 02:31:35 +00:00
parent 0c7d36bbf1
commit 3c03a3110a

View File

@ -358,6 +358,7 @@ int hsm_reset_module( void )
SetErrorInfo( __FUNCTION__, __LINE__ ); SetErrorInfo( __FUNCTION__, __LINE__ );
return ret_code; return ret_code;
} }
} // 復旧処理
NFastApp_Free_Command( handle, NULL, NULL, &cmd ); NFastApp_Free_Command( handle, NULL, NULL, &cmd );
NFastApp_Free_Reply( handle, NULL, NULL, &reply ); NFastApp_Free_Reply( handle, NULL, NULL, &reply );
@ -404,13 +405,12 @@ int hsm_reset_module( void )
return ret_code; return ret_code;
} }
// 復旧しないようなら終了するしかない // まだ failed state ならば、終了するしかない
if ( reply.reply.newenquiry.flags & Cmd_NewEnquiry_Reply_flags_Failed ) if ( reply.reply.newenquiry.flags & Cmd_NewEnquiry_Reply_flags_Failed )
{ {
SetErrorInfo( __FUNCTION__, __LINE__ ); SetErrorInfo( __FUNCTION__, __LINE__ );
return Status_HardwareFailed; return Status_HardwareFailed;
} }
} // 復旧処理
// <20>Øf // <20>Øf
ret_code = NFastApp_Disconnect( hsmConnection, NULL ); ret_code = NFastApp_Disconnect( hsmConnection, NULL );