/* @priv: Sandbox flash private data @resp: Response to send, or NULL if none @size: Size of response  */
static void setup_response(struct sandbox_flash_priv *priv, void *resp, int size)
/* @priv: Sandbox flash private data @resp: Response to send, or NULL if none @size: Size of response  */
static void setup_response(struct sandbox_flash_priv *priv, void *resp, int size)
{
	struct umass_bbb_csw *csw = &priv->status;
	csw->dCSWSignature = CSWSIGNATURE;
	csw->dCSWTag = priv->tag;
	csw->dCSWDataResidue = 0;
	csw->bCSWStatus = CSWSTATUS_GOOD;
	assert(!resp || resp == priv->buff);
	priv->buff_used = size;
}