/* And bear in mind, this is about reading from the target PEB, i.e. the PEB which we have just written.  */
static int is_error_sane(int err)
/* And bear in mind, this is about reading from the target PEB, i.e. the PEB which we have just written.  */
static int is_error_sane(int err)
{
	if (err == -EIO || err == -ENOMEM || err == UBI_IO_BAD_VID_HDR ||
	    err == -ETIMEDOUT)
		return 0;
	return 1;
}