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:
@@ -1259,12 +1259,13 @@ run_mmc_cmd_linux( void *p_user_data,
|
||||
return DRIVER_OP_ERROR;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else if (i_rc < -1)
|
||||
return DRIVER_OP_ERROR;
|
||||
}
|
||||
else
|
||||
/*Not sure if this the best thing, but we'll use anyway. */
|
||||
return DRIVER_OP_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
Return the size of the CD in logical block address (LBA) units.
|
||||
|
||||
@@ -316,8 +316,10 @@ run_mmc_cmd_solaris( void *p_user_data, unsigned int i_timeout_ms,
|
||||
return DRIVER_OP_ERROR;
|
||||
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. */
|
||||
return DRIVER_OP_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user