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,11 +1259,12 @@ 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user