remove close() of unitialized fd

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Laurent Vivier 2011-12-18 14:38:53 +01:00
parent 3130ac4a9e
commit 8a1be776ad

View File

@ -108,13 +108,11 @@ int emile_floppy_create(char *image, char* first_level, char* second_level)
if (first_level == NULL)
{
close(fd);
return EEMILE_MISSING_FIRST;
}
if (second_level == NULL)
{
close(fd);
return EEMILE_MISSING_SECOND;
}