def get_name_from_fq_name(name):
    """
    Given a fully-qualified name, get the name part.
    It's the sequence of characters before the last "." in the name.
 
    Return None if malformed

    >>> get_name_from_fq_name('abc.def')
    'abc'
    >>> get_name_from_fq_name('abc.def.ghi')
    'abc.def'
    >>> get_name_from_fq_name('abc')
    """
    if '.' not in name:
        return None
    return '.'.join(name.split('.')[:-1])
