components/spi_flash/esp_flash_api.c
// check that the 'chip' parameter is properly initialised
check that the 'chip' parameter is properly initialised
check that the ' chip ' parameter is properly initialised
static esp_err_t check_chip_pointer_default(esp_flash_t **inout_chip)
{
    esp_flash_t *chip = *inout_chip;
    if (chip == NULL) {
        chip = esp_flash_default_chip;
    }
    *inout_chip = chip;
    if (chip == NULL || !esp_flash_chip_driver_initialized(chip)) {
        return ESP_ERR_FLASH_NOT_INITIALISED;
    }
    return ESP_OK;
}
static esp_err_t check_chip_pointer_default ( esp_flash_t * * inout_chip ) { esp_flash_t * chip = * inout_chip ; if ( chip == NULL ) { chip = esp_flash_default_chip ; } * inout_chip = chip ; if ( chip == NULL || ! esp_flash_chip_driver_initialized ( chip ) ) { return ESP_ERR_FLASH_NOT_INITIALISED ; } return ESP_OK ; }
check that the 'chip' parameter is properly initialised
check that the ' chip ' parameter is properly initialised