On ioctl's, a negative number is considered an unspecified error while

a positive number is not. Replace tabs in lines with blanks.
This commit is contained in:
R. Bernstein
2009-12-24 06:28:27 -05:00
parent 6cb64d1a08
commit f031f69f69
2 changed files with 187 additions and 184 deletions

View File

@@ -1259,12 +1259,13 @@ run_mmc_cmd_linux( void *p_user_data,
return DRIVER_OP_ERROR; return DRIVER_OP_ERROR;
break; break;
} }
} } else if (i_rc < -1)
return DRIVER_OP_ERROR; return DRIVER_OP_ERROR;
} else
/*Not sure if this the best thing, but we'll use anyway. */ /*Not sure if this the best thing, but we'll use anyway. */
return DRIVER_OP_SUCCESS; return DRIVER_OP_SUCCESS;
} }
}
/*! /*!
Return the size of the CD in logical block address (LBA) units. Return the size of the CD in logical block address (LBA) units.

View File

@@ -316,8 +316,10 @@ run_mmc_cmd_solaris( void *p_user_data, unsigned int i_timeout_ms,
return DRIVER_OP_ERROR; return DRIVER_OP_ERROR;
break; break;
} }
return DRIVER_OP_ERROR;
} }
else if (i_rc < -1)
return DRIVER_OP_ERROR;
else
/*Not sure if this the best thing, but we'll use anyway. */ /*Not sure if this the best thing, but we'll use anyway. */
return DRIVER_OP_SUCCESS; return DRIVER_OP_SUCCESS;
} }