mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Add basic module management logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1894 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -67,8 +67,6 @@
|
||||
|
||||
int nxflat_verifyheader(const struct nxflat_hdr_s *header)
|
||||
{
|
||||
uint16 revision;
|
||||
|
||||
if (!header)
|
||||
{
|
||||
bdbg("NULL NXFLAT header!");
|
||||
@@ -88,15 +86,6 @@ int nxflat_verifyheader(const struct nxflat_hdr_s *header)
|
||||
header->h_magic[2], header->h_magic[3]);
|
||||
return -ENOEXEC;
|
||||
}
|
||||
|
||||
/* Complain a little more if the version does not match. */
|
||||
|
||||
revision = ntohs(header->h_rev);
|
||||
if (revision != NXFLAT_VERSION_CURRENT)
|
||||
{
|
||||
bdbg("Unsupported NXFLAT version=%d\n", revision);
|
||||
return -ENOEXEC;
|
||||
}
|
||||
return 0;
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user