> + return (mag && mag->size == IOVA_MAG_SIZE);> + return (!mag || mag->size == 0);No need for the braces in both cases.